can someone correct this setpvar thing?
#1

i have 4 errors when i have this code.

pawn Код:
else if(pickupid == comb)
    {
        weapon[playerid] = 27;
        weaponcost[playerid] = 1200;
        ammo2[playerid] = 210;
        TextDrawShowForPlayer(playerid, background);
        #if defined ALT
        TextDrawSetString(text2, "Use 'ALT' to buy. Cost $1200.");
        #else
        TextDrawSetString(text2, "Use 'ALT' to buy. Cost $1200.");
        #endif
        TextDrawShowForPlayer(playerid, text2);
        wpicked[playerid] = 1;
        SetTimerEx("HideText", 2000, false, "d", playerid);
        SetPVarInt(playerid,"comb", GetPVarInt(playerid,"comb")7); // Adds 7 "Ammo" to the PVar which is checked when the AC checks for this weapon
    }
i never used pvar before, so can someone help me out here?
Reply
#2

pawn Код:
GetPVarInt(playerid,"comb")+7
Reply
#3

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
pawn Код:
GetPVarInt(playerid,"comb")+7
thanks man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)