Holding keys
#1

Hello,

I want to check is player holding W and S in vehicle, but from some reason it doesn't do what I want.

Here is the code:

pawn Код:
if(HOLDING(KEY_UP | KEY_DOWN) && IsPlayerInAnyVehicle(playerid)){
        Boost[playerid]++;
        printf("%d", Boost[playerid]);
    }
It doesn't print anything in console.
Reply


Messages In This Thread
Holding keys - by CoaPsyFactor - 11.08.2012, 16:09
Re: Holding keys - by Youarex - 11.08.2012, 16:22
Re: Holding keys - by CoaPsyFactor - 11.08.2012, 16:40
Re: Holding keys - by [MK]Man_Deep - 11.08.2012, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)