15.03.2013, 12:01
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);
}