Tag mismatch? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tag mismatch? (
/showthread.php?tid=209516)
Tag mismatch? -
Outcast - 10.01.2011
I made a setcarplates command which sets your car's plates to something you type.
I need to make a check where it checks if player is in any vehicle. I made the following but I get a tag mismatch message. Can you please help me out?
Код:
if(IsPlayerInAnyVehicle(getid) == true) return SendClientMessage(playerid,COLOR_RED,"[Error] Player has to be in a vehicle to do this");
Re: Tag mismatch? -
JaTochNietDan - 10.01.2011
That's because IsPlayerInAnyVehicle returns an integer, not a boolean, so just do this:
pawn Код:
if(IsPlayerInAnyVehicle(getid)) return SendClientMessage....
Re: Tag mismatch? -
Outcast - 10.01.2011
Thanks man. I managed to do it.