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



Fixed - TYDS - 07.11.2016

error 017: undefined symbol "vehicleid"

Код:
if(GetVehicleModel(vehicleid) != 478) // 
    {
        SendClientMessageEx(playerid, COLOR_RED,"You need walton ! ");
    }



Re: Error with GetVehicleModel - thefirestate - 07.11.2016

where is this code executed?


Re: Error with GetVehicleModel - TYDS - 07.11.2016

Quote:
Originally Posted by thefirestate
Посмотреть сообщение
where is this code executed?
?


Re: Error with GetVehicleModel - SyS - 07.11.2016

on which call back you put this code? does that callback have vehicle id as arguement or you just used it in other self made function or command? what ever the problem is that is vehicleid is not in that scope of script or in other words its not declared in that body.


Re: Error with GetVehicleModel - StrikerZ - 07.11.2016

It should be used in
PHP код:
public OnPlayerEnterVehicle(playeridvehicleidispassenger
or if its in a command then use
PHP код:
new vehicleid GetPlayerVehicleID(playerid);