if is player alredy registred he can do that again
#4

You can use a Boolean - at the top of your script:
pawn Код:
new bool: PlayerRegistered[MAX_PLAYERS];
Once the player has registered in your gamemode add:
pawn Код:
PlayerRegistered[playerid] = true;
once the player has connected to the server -
pawn Код:
PlayerRegistered[playerid] = false;
for clearing it.

Save the data using your saving system and load it too.

Why a Boolean?: it uses 1byte, why would you need a 2 byte integer once you want two values 0 and 1 for example? --- if you want other values do not use Boolean!

I hope I helped any feedback is appreciated!
Reply


Messages In This Thread
if is player alredy registred he can do that again - by Deny1 - 23.07.2015, 17:34
Re: if is player alredy registred he can do that again - by trablon - 23.07.2015, 17:52
Re: if is player alredy registred he can do that again - by KingHual - 23.07.2015, 18:03
Re: if is player alredy registred he can do that again - by Stanford - 23.07.2015, 18:06
Re: if is player alredy registred he can do that again - by Deny1 - 23.07.2015, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)