Registered players YSI
#1

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.
Reply
#2

If you are using YSI, why don't you use the user system already provided?
Reply
#3

Which user system? I can't find anything in this one
https://sampforum.blast.hk/showthread.php?tid=414141
Reply
#4

Fixed, I did it with fopen, fwrite, etc...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)