SA-MP Forums Archive
One problem - 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: One problem (/showthread.php?tid=631591)



One problem - StrikerZ - 01.04.2017

Nvm. Fixed.


Re: One problem - Toroi - 01.04.2017

If I have to guess, I'd say that maybe the GetPlayerVirtualWorld function does not work under OnPlayerDisconnect, but that's a supposition.

You can also try to set the player variable of its virtual world every time you use the SetPlayerVirtualWorld function so you don't have to worry on getting the virtual world afterwards as you will have it stored already.

Then you'll only need to save that variable under OnPlayerDisconnect just like the other data.