17.04.2012, 21:35
i have 4 errors when i have this code.
i never used pvar before, so can someone help me out here?
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
}