[HELP] What am i doing wrong (GetPlayerKeys)
#6

if((newkeys & key) && !(oldkeys & key)) and if(newkeys - oldkeys == KEY_JUMP) Same

If the player has clamped KEY_SPRINT (8 ) and at this time has pressed KEY_JUMP (32) in public will return:
newkeys = KEY_SPRINT (8 ) + KEY_JUMP (32) = 40
oldkeys = KEY_SPRINT (8 )
newkeys - oldkeys = 40 - KEY_SPRINT (8 ) = KEY_JUMP (32) - Key pressing
oldkeys - newkeys = 40 - KEY_SPRINT (8 ) = KEY_JUMP (32) - Key unpressing

All is considered
Reply


Messages In This Thread
[HELP] What am i doing wrong (GetPlayerKeys) - by Dirty_bum - 25.09.2009, 02:24
Re: [HELP] What am i doing wrong (GetPlayerKeys) - by Toribio - 25.09.2009, 02:46
Re: [HELP] What am i doing wrong (GetPlayerKeys) - by Dirty_bum - 25.09.2009, 03:09
Re: [HELP] What am i doing wrong (GetPlayerKeys) - by Stepashka - 25.09.2009, 07:29
Re: [HELP] What am i doing wrong (GetPlayerKeys) - by Kalcor - 25.09.2009, 07:45
Re: [HELP] What am i doing wrong (GetPlayerKeys) - by Stepashka - 25.09.2009, 08:03
Re: [HELP] What am i doing wrong (GetPlayerKeys) - by Kalcor - 25.09.2009, 08:53
Re: [HELP] What am i doing wrong (GetPlayerKeys) - by Stepashka - 25.09.2009, 09:25

Forum Jump:


Users browsing this thread: 1 Guest(s)