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


Messages In This Thread
can someone correct this setpvar thing? - by Andy_McKinley - 17.04.2012, 21:35
Re: can someone correct this setpvar thing? - by Scenario - 17.04.2012, 21:46
Re: can someone correct this setpvar thing? - by Andy_McKinley - 17.04.2012, 21:54

Forum Jump:


Users browsing this thread: 1 Guest(s)