SA-MP Forums Archive
SetPVarInt() when player leave? - 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)
+--- Thread: SetPVarInt() when player leave? (/showthread.php?tid=398240)



SetPVarInt() when player leave? - Azazelo - 08.12.2012

What heaped with variables created by SetPVarInt()

when player leave server ?


Are they destroyed , turned to null or still valid?


And is there a way to destroy all unused variables created this way ?


Re: SetPVarInt() when player leave? - Lz - 08.12.2012

Quote:
Originally Posted by Azazelo
View Post
What heaped with variables created by SetPVarInt()

when player leave server ?


Are they destroyed , turned to null or still valid?


And is there a way to destroy all unused variables created this way ?
The values are reset after the onPlayerDiscconect Function is called


Re: SetPVarInt() when player leave? - maramizo - 08.12.2012

Variables aren\'t reset until after OnPlayerDisconnect is called, so the values are still accessible in OnPlayerDisconnect.


Re: SetPVarInt() when player leave? - Azazelo - 08.12.2012

Thank you maramizo.