[Critical Bug] GetPVar's OnPlayerDisconnect - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Critical Bug] GetPVar's OnPlayerDisconnect (
/showthread.php?tid=198895)
[Bug] GetPVar's OnPlayerDisconnect -
MazaHACKa - 13.12.2010
Server can't get the player variables in OnPlayerDisconnect public.
For example try to:
put SetPVarInt(playerid,"var",1); to OnPlayerConnect
and printf("%d",GetPVarInt(playerid,"var")); to OnPlayerDisconnect;
Send gmx command.
It will print "0".
Re: [Critical Bug] GetPVar's OnPlayerDisconnect -
CyNiC - 13.12.2010
PVars are deleted when the player disconnect.
Re: [Critical Bug] GetPVar's OnPlayerDisconnect -
MazaHACKa - 13.12.2010
Quote:
Originally Posted by SA:MP Wiki
Note: Variables aren't reset until after OnPlayerDisconnect is called, so the values are still accessible in OnPlayerDisconnect.
|
This is a lie?
Re: [Critical Bug] GetPVar's OnPlayerDisconnect -
FUNExtreme - 13.12.2010
Why would it be, sounds pretty logical. When the player leaves the saved information of that ID is not needed anymore therefor deleted.
Don't know if its true offcourse
Re: [Critical Bug] GetPVar's OnPlayerDisconnect -
Riddick94 - 14.12.2010
In OnPlayerConnect PVars sets to 0 too? or i must do it manual?
Re: [Critical Bug] GetPVar's OnPlayerDisconnect -
RyDeR` - 14.12.2010
PVar's reset when player leave server. I have tested it many times and I still can retrieve data while disconnecting.
Re: [Critical Bug] GetPVar's OnPlayerDisconnect -
beckzy - 14.12.2010
They don't work in OnPlayerDisconnect when you use rcon gmx. Neither does GetPlayerPos since 0.2X. I'm not sure what else doesn't work in OnPlayerDisconnect at a gmx, I only discovered GetPlayerPos after 0.2X because I used to save the players position that way.
Re: [Critical Bug] GetPVar's OnPlayerDisconnect -
wups - 14.12.2010
+ This is not a critical bug.