(2021-02-14, 02:03 PM)Radical Wrote:(2021-02-14, 01:02 PM)mems Wrote:(2021-02-14, 12:19 PM)Kwarde Wrote: Why is it still not working? What do the logs say?
As for the question, what kind of specific stuff are you talking about? (The answer is yes anyway)
to clarify stuff here, the command works normally as expected to, but the file "allusers.txt" doesn't list players, instead replaces them. it's like this:
Code:mems
if someone registers as mems1:
Code:mems1
and notCode:mems
mems1
the specific stuff im talking about have to do with checking if from every user they have a specific gang level. in this case, it's:so i need to somehow make that if statement before continuing the level change procedure.Code:GSFLevel
Try this:
Code:new File: handle = fopen("allusers.txt",?io_append), Name[MAX_PLAYER_NAME];
? ? ? ? ? ? ? ? GetPlayerName(playerid, Name, sizeof(Name));
? ? ? ? ? ? ? ? strcat(Name,?"\r\n");
? ? ? ? ? ? ? ? fwrite(handle, Name);
? ? ? ? ? ? ? ? fclose(handle);
thank you, that worked
edit: for some reason this error kicks in again:
Code:
*** YSI Warning: INI_Open could not find or create file Users/mems
.ini
*** YSI Warning: INI_Open could not find or create file Users/mems1
.ini