[REQUEST]Reading from a multiple files
I've already asked how to read from a file, but I fail when I try to read from multiple files in the same plugin. I will comment in php code. I would appreciate if someone could do it for me. I will give more information if it's needed.
PHP Code:
|
Re: [REQUEST]Reading from a multiple files
Stop saying "consts", you never use it correctly. "const" means constant. You can't assign anything to a constant after it has been declared.
Also, where is your file read code? Reading two files is just as easy as reading one file. You either need two different file handles or you need to open one after the other. The latter is likely more appropriate here. |
Re: [REQUEST]Reading from a multiple files
But I don't understand how...
PHP Code:
|
Re: [REQUEST]Reading from a multiple files
Look in my Bot Apology plugin for an example of how to read a file.
|
Re: [REQUEST]Reading from a multiple files
It seems that I can't understand more then 75% of this:
PHP Code:
|
Re: [REQUEST]Reading from a multiple files
( old read file native i know ... : P )
If you want to read from file ( addons/myidontknowwhat.txt ) example 2 things: mapname value PHP Code:
|
Re: [REQUEST]Reading from a multiple files
Quote:
|
Re: [REQUEST]Reading from a multiple files
Quote:
|
Re: [REQUEST]Reading from a multiple files
PHP Code:
|
Re: [REQUEST]Reading from a multiple files
Awww, Failed ... How can i be so stupid sometimes..
Allright here is new code PHP Code:
|
| All times are GMT -4. The time now is 20:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.