Read from file
Hey alliedmodders. how can i read from a file like this:
Code:
"something" "something2" "st3" "sm4" "sm5"PHP Code:
|
Re: Read from file
Use the file functions to open the file and "parse" to get the strings that are in between the quotes.
https://www.amxmodx.org/api/file/fopen https://www.amxmodx.org/api/string/parse |
Re: Read from file
There are plenty of examples on these forums, search for "fopen parse fgets" and you'll likely find exactly what you need. This is the suggestions/requests section, do you need something written, or are you asking for help with scripting? If you need help, this should be posted in scripting help.
|
Re: Read from file
Thank you.
|
| All times are GMT -4. The time now is 19:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.