Registered players YSI - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Registered players YSI (
/showthread.php?tid=500318)
Registered players YSI -
CroM256 - 12.03.2014
Hi,
I am trying to make this...
When someone register on server, it will set regplayers++; but i dont know how to open INI file to load number on variable regplayers. If you know what i mean xD
Код:
new INI:R = INI_Open("regplayers");
regplayers++;
INI_SetTag(R,"Reg");
INI_WriteInt(R, "regpl", regplayers);
INI_Close®;
Now i don't know how to load that file on OnGameModeInit...if server doesn't load it, it will start counting from 0.
BTW Check is this right what i wrote in code.
Re: Registered players YSI -
ColeMiner - 12.03.2014
If you are using YSI, why don't you use the user system already provided?
Re: Registered players YSI -
CroM256 - 12.03.2014
Which user system? I can't find anything in this one
https://sampforum.blast.hk/showthread.php?tid=414141
Re: Registered players YSI -
CroM256 - 12.03.2014
Fixed, I did it with fopen, fwrite, etc...