24.06.2012, 22:12
hai, i used this code in OnPlayerStateChange or something
but i get this error
error 017: undefined symbol "KEY_LEFT_ALT"
pawn Код:
if (PRESSED(KEY_LEFT_ALT) && !IsPlayerInAnyVehicle(playerid))
{
for(new i = 0;i< MAX_STAIRS; i++)
{
if(IsPlayerInRangeOfPoint(playerid,RANGE_LIMIT,stairs[i][0],stairs[i][1],stairs[i][2]))
{
return SetPlayerToClimb(playerid,stairs[i][3],stairs[i][4],stairs[i][5]);
}
}
}
error 017: undefined symbol "KEY_LEFT_ALT"