2021-02-14, 02:02 PM
(2021-02-14, 01:53 PM)Kwarde Wrote: Ah I see. You used filemode io_write. io_write clears the entire file before writing to it. You'll need io_append. https://open.mp/nl/docs/scripting/functions/fopen
As for checking GSFLevel, just load that value using y_ini to a temporary (read: local) variable and do your if check there?
i don't know but this reminds me of that function someone made on the samp forum
Code:
forward LoadPlayerBan(tag[], name[], value[]);
public LoadPlayerBan(tag[], name[], value[])
{
if(!strcmp("=|PlayerData|=", tag))
INI_Int("Banned", BanInfo);
return 1;
}