21.10.2009, 13:35
Open the file with oi_write or io_append mode (read the wiki for differences), write with fwrite, then close with fclose. To read, you'll need something like sscanf so you can dismantle the string to the integers/floats you want. Also, use something like '|' or ',' between integers/floats when you write so you can extract the data then with the help of that delimiter
https://sampwiki.blast.hk/wiki/Fopen
https://sampwiki.blast.hk/wiki/Scripting...ions_Old#fread
https://sampwiki.blast.hk/wiki/Scripting...ons_Old#fwrite
https://sampwiki.blast.hk/wiki/Scripting...ons_Old#fclose
https://sampwiki.blast.hk/wiki/Fast_Commands#sscanf
https://sampwiki.blast.hk/wiki/Sscanf_code
https://sampwiki.blast.hk/wiki/Fopen
https://sampwiki.blast.hk/wiki/Scripting...ions_Old#fread
https://sampwiki.blast.hk/wiki/Scripting...ons_Old#fwrite
https://sampwiki.blast.hk/wiki/Scripting...ons_Old#fclose
https://sampwiki.blast.hk/wiki/Fast_Commands#sscanf
https://sampwiki.blast.hk/wiki/Sscanf_code