SA-MP Forums Archive
problem - 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: problem (/showthread.php?tid=82634)



problem - Mr_C30 - 19.06.2009

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




Re: problem - Nero_3D - 19.06.2009

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, ".........................................)");
                }



Re: problem - Mr_C30 - 19.06.2009

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

!=





thx ++