[help] how to stop anims with a key
#1

hello i need a bit of help im still learning pawn(obviously lol) and im stuck with something i need to bind a key in my FS to stop anims, as fire often doesn't clear the anims i have looked on wiki and i thought i found a solution which is:
the define:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

and the function:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED( KEY_FIRE | KEY_SPRINT ))
{
ClearAnimations(playerid);
}
return 1;
}
(didn't work)
i know i have probably done something wrong or missed something out i thought this would work it had no errors (been scripting less than a month so go easy on me plz) everyone has to start somewhere.
if u need any additional info to help plz say.
and please i dont wana hear "learn pawn" or "check the wiki", i am trying to learn and i learn mainly from the wiki. thanks for ur time much appreciated
Reply


Messages In This Thread
[help] how to stop anims with a key - by iggy1 - 06.04.2010, 15:05
Re: [help] how to stop anims with a key - by dice7 - 06.04.2010, 15:07
Re: [help] how to stop anims with a key - by Rac3r - 06.04.2010, 15:39
Re: [help] how to stop anims with a key - by XCarBOn - 06.04.2010, 15:45
Re: [help] how to stop anims with a key - by Rac3r - 06.04.2010, 15:48
Re: [help] how to stop anims with a key - by iggy1 - 06.04.2010, 16:00

Forum Jump:


Users browsing this thread: 4 Guest(s)