problem
#1

hi
Can you help me to correct a code

Код:
	                    new Car = GetPlayerVehicleID(playerid);
				if(!Car == 522)//warning
				{
		             SendClientMessage(playerid, COLOR_RED, ".........................................)");
				}
and warning

Код:
warning 213: tag mismatch


pleasse

Reply
#2

what do you want, if you want that you get a message if you are in the vehicle with the vehicleid 522, you need to remove the '!'
But I think you wanted to send this message if the player is in this vehiclemodel

pawn Код:
new VModel = GetVehicleModel(GetPlayerVehicleID(playerid));
                if(VModel == 522)
                {
                     SendClientMessage(playerid, COLOR_RED, ".........................................)");
                }
Reply
#3

hum ok but code is easy ^ ^ I ask "! " but my friends give the trick if
Код:
(Car != 522 )

!=





thx ++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)