19.07.2016, 20:19
How to make key in my script to stop running anim?
like enter button/Lmb click.
like enter button/Lmb click.
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
ClearAnimations(playerid);
}
return 1;
}
error 017: undefined symbol "PRESSED"
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))