Tag mismatch?
#1

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");
Reply
#2

That's because IsPlayerInAnyVehicle returns an integer, not a boolean, so just do this:

pawn Код:
if(IsPlayerInAnyVehicle(getid)) return SendClientMessage....
Reply
#3

Thanks man. I managed to do it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)