OnPlayerKeyState change problem
#1

It doesn't work and I don't know why.

pawn Код:
if(PRESSED(KEY_LEFT) && GetIntVar(playerid, "BrowsingSkins") == 1)
    {
        if(GetIntVar(playerid, "SkinBuying") == 1) return 1;
        SetPlayerSkin(playerid, GetIntVar(playerid, "SkinBuying")+1);
        SetIntVar(playerid, "SkinBuying", GetIntVar(playerid, "SkinBuying")+1);
    }
    if(PRESSED(KEY_RIGHT) && GetIntVar(playerid, "BrowsingSkins") == 1)
    {
        if(GetIntVar(playerid, "SkinBuying") == 299) return 1;
        SetPlayerSkin(playerid, GetIntVar(playerid, "SkinBuying")-1);
        SetIntVar(playerid, "SkinBuying", GetIntVar(playerid, "SkinBuying")-1);
    }
Reply
#2

Код:
if(PRESSED(KEY_LEFT) && GetIntVar(playerid, "BrowsingSkins") == 1)
    {
        if(GetIntVar(playerid, "SkinBuying") == 1) return 1;
        SetPlayerSkin(playerid, GetIntVar(playerid, "SkinBuying")-1);
        SetIntVar(playerid, "SkinBuying", GetIntVar(playerid, "SkinBuying")-1);
    }
    if(PRESSED(KEY_RIGHT) && GetIntVar(playerid, "BrowsingSkins") == 1)
    {
        if(GetIntVar(playerid, "SkinBuying") == 299) return 1;
        SetPlayerSkin(playerid, GetIntVar(playerid, "SkinBuying")+1);
        SetIntVar(playerid, "SkinBuying", GetIntVar(playerid, "SkinBuying")+1);
    }
Reply
#3

still not
I tried with other keys and it works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)