Variable resetting after player disconnect...
#4

Quote:
Originally Posted by Wizza
Посмотреть сообщение
This was originally posted by the sa-mp wiki The same wiki page you posted read next time will ya.
Man... my question was if the player crashes...

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
I do not recommend you to use PVars: https://sampforum.blast.hk/showthread.php?tid=268499

Variables (in your case the array) will be reset even if the player crashed. OnPlayerDisconnect is called so if you have:
pawn Код:
// OnPlayerDisconnect:
PVARIABLE[playerid] = 0;
it will be reset normally.
TNX MAN... You really helped me to understand these things :P THANKS AGAIN... REP +
Reply


Messages In This Thread
Variable resetting after player disconnect... - by NeroX98 - 04.01.2014, 14:33
Re: Variable resetting after player disconnect... - by Wizza - 04.01.2014, 14:39
Re: Variable resetting after player disconnect... - by Konstantinos - 04.01.2014, 14:42
Re: Variable resetting after player disconnect... - by NeroX98 - 04.01.2014, 18:39

Forum Jump:


Users browsing this thread: 1 Guest(s)