Help here!
#1

error i get

Код:
C:\Users\Robins\Desktop\New folder\pawno\include\/CRP/Publics/OnPlayerStateChange.pwn(82) : error 017: undefined symbol "vehicleid"




code

pawn Код:
else if(newstate == PLAYER_STATE_DRIVER)
    {
       if(IsATaxiCar(GetVehicleModel(GetPlayerVehicleID(GetPlayerVehicleID(playerid))))) //if Vehicle model that player enter is taxi
       {
            if(PlayerInfo[playerid][pJob] != 2) //if Player job is not "2" or "taxi driver (maybe)"
            {
                new Float:playerposxva, Float:playerposyva, Float:playerposzva;
                GetPlayerPos(playerid, playerposxva, playerposyva, playerposzva);
                SetPlayerPos(playerid,playerposxva, playerposyva, playerposzva);
                RemovePlayerFromVehicle(playerid);
                LockCar(vehicleid);
                SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this car.");
            }
        }
    }
Reply
#2

Define vehicle id:
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
Reply
#3

fix

Quote:

new vehicleid = GetPlayerVehicleID(playerid);

.....
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)