16.11.2013, 20:19
Hello guys
I'm recieving this error
can someone help me out please
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
if(Engine[vehicleid] == 0)
{
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "((use /e to turn the vehicle engine on))");
if(newkeys & KEY_SECONDARY_ATTACK)
{
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
else if(Engine[vehicleid] == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "Engine Running...");
TogglePlayerControllable(playerid, 1);
}
}
}
return 1;
}
pawn Код:
C:\Users\dell\Desktop\Script\gamemodes\hrp.pwn(682) : error 017: undefined symbol "newkeys"
C:\Users\dell\Desktop\Script\gamemodes\hrp.pwn(694) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.