Error with GetVehicleModel
#1

error 017: undefined symbol "vehicleid"

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

where is this code executed?
Reply
#3

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

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.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)