Undefined symbol
#1

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PRESSED(KEY_YES**))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
        }
    }
    return 1;
}
pawn Код:
C:\Users\carlo\Desktop\SA-MP Server\trucking\filterscripts\engine system.pwn(29) : error 017: undefined symbol "PRESSED"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

pawn Код:
#define PRESSED(%0) \
             (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Add this at the top of your script
Reply
#3

put this on put this on top

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)