Posts: 19
Threads: 4
Joined: Feb 2009
Reputation:
0
13.12.2010, 18:15
(
Последний раз редактировалось MazaHACKa; 14.12.2010 в 10:38.
)
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".
Posts: 1,420
Threads: 65
Joined: Jan 2009
Reputation:
0
PVars are deleted when the player disconnect.
Posts: 790
Threads: 7
Joined: Mar 2008
Reputation:
0
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
Posts: 1,767
Threads: 124
Joined: Mar 2010
In OnPlayerConnect PVars sets to 0 too? or i must do it manual?
Posts: 2,929
Threads: 160
Joined: Feb 2009
Reputation:
0
PVar's reset when player leave server. I have tested it many times and I still can retrieve data while disconnecting.
Posts: 1,290
Threads: 69
Joined: Dec 2006
Reputation:
0
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.
Posts: 1,216
Threads: 59
Joined: Apr 2010
Reputation:
0
+ This is not a critical bug.