Y_INI Offline - 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: Y_INI Offline (
/showthread.php?tid=576782)
Y_INI Offline -
DarkLouis - 06.06.2015
Hi all.
I want to assign 5 numbers to player that is registering.
The function that I made works fine.
The problem is:
If player Louis_Jefferson have ID 55535 and another player example, Jimmy_Leone is registering, I don't want that ID 55535 can repeated and so I want to do a loop throw player and check his ID.
I use Y_INI.
How can I do this?
Re: Y_INI Offline -
JaydenJason - 06.06.2015
save all ids only in a file and upon registering read it to check if the players id matches any of the other ids
Re: Y_INI Offline -
DarkLouis - 06.06.2015
Can you show me a little example? Thank you!
Re: Y_INI Offline -
Yashas - 07.06.2015
Код:
new LastRegUserID; //You must load this everytime the server starts
When a player registers, use ++LastRegUserID.