[help]Player vehicle id messed up - 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: [help]Player vehicle id messed up (
/showthread.php?tid=444611)
[help]Player vehicle id messed up -
SMW - 17.06.2013
yesterday, im modifying vehicle system from 1 slot per player to 5 slot per player, its use SQL system, when i tested with some friend (6 - 9 people) it run perfectly, no bug found, but when i released my server to players the vehicle id is messed up, 2 players can have 1 same vehicle id, any help ?
if you need info about my code, ill post it.. thx
Re: [help]Player vehicle id messed up -
SMW - 19.06.2013
thanks its fixed, the problem is when the player Alttabed, the script set the player status to 0 (unauth player) and when the player back, i forget to set their status to 1 (auth player),
onplayerdisconnect, its destroy player vehicle if the status is 1, thanks ..