12.03.2012, 09:46
error i get
code
Код:
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.");
}
}
}