• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] how to load every user.ini in scriptfiles using YINI
#17
(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;

}
is this even close?
  Reply


Messages In This Thread
RE: how to load every user.ini in scriptfiles using YINI - by mems - 2021-02-14, 02:02 PM

Forum Jump: