getplayerkeys updown does not work
#1

when i click left or right its ok, if up or down, no message gets sent;
pawn Код:
static keys, ud, lr;
        GetPlayerKeys(playerid, keys, ud, lr);
        if(lr > 0)
        {
            PlayerInfo[playerid][pInvisibilityTick] = GetTickCount();
            SendClientMessage(playerid, -1, "Pressing Right");
        }
        else if(lr < 0)
        {
            SendClientMessage(playerid, -1, "Pressing Left");
        }
        if(ud < 0)
        {
            SendClientMessage(playerid, -1, "Pressing Up");
        }
        else if(ud > 0)
        {
            SendClientMessage(playerid, -1, "Pressing Down");
        }
Reply
#2

Are you in a vehicle or on foot when pressing?
The up down keys are not wasd, but the arrow keys when you are in a car. Unfortuanetly you cant get the wasd keys there.
Reply
#3

in vehicle, yes i actually want them to be arrow keys.

left and right works .. but accelerate and brake doesn't (using arrow keys)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)