Y_INI Offline
#1

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

save all ids only in a file and upon registering read it to check if the players id matches any of the other ids
Reply
#3

Can you show me a little example? Thank you!
Reply
#4

Код:
new LastRegUserID; //You must load this everytime the server starts
When a player registers, use ++LastRegUserID.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)