1 error
#1

hai, i used this code in OnPlayerStateChange or something

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]);
            }
        }
    }
but i get this error
error 017: undefined symbol "KEY_LEFT_ALT"
Reply
#2

their is no KEY_LEFT_ALT

just KEY_LEFT
Reply
#3

KEY_LEFT_ALT does not exist. You need to use one of the predefined type of keys. Since left-alt's default action is walking, I'd suggest using KEY_WALK.
Reply
#4

Thanks worked perfect
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)