SA-MP Forums Archive
Control Structure Help - 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: Control Structure Help (/showthread.php?tid=582746)



Control Structure Help - Keyhead - 23.07.2015

I have a system to recognise whether a player has the correct job for a job vehicle, but it keeps kicking me out regardless. The code where it's failing.

pawn Код:
if(VehicleInfo[newcar][EVOwner] != GetPVarInt(playerid, "Job") && VehicleInfo[newcar][EVOwner] != GetPVarInt(playerid, "Job2")) {



Re: Control Structure Help - Stanford - 23.07.2015

Do you have anything under OnPlayerUpdate or any other time that removes players from their vehicles?.