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



GetVehicleModel - Roddan - 17.08.2012

Hello. When i add this:

PHP код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) = 574
I get this:

Код:
warning 211: possibly unintended assignment
: error 022: must be lvalue (non-constant)
: warning 215: expression has no effect
: error 001: expected token: ";", but found ")"
: error 029: invalid expression, assumed zero
 : fatal error 107: too many error messages on one line



Re: GetVehicleModel - Ballu Miaa - 17.08.2012

Use this
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)



Re: GetVehicleModel - leonardo1434 - 17.08.2012

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574){
//function  
}