21.05.2020, 14:40
Quote:
Show me how your WEAPON_SHOP array looks like and the line where you show that dialog to a player.
|
pawn Code:
enum E_WEAPON_SHOP_DATA
{
WEAPON_MODELID,
WEAPON_NAME[35],
WEAPON_PRICE,
WEAPON_AMMO,
WEAPON_ID
};
new const WEAPON_SHOP[][E_WEAPON_SHOP_DATA] =
{
{341, "Chainsaw", 10000, 1, WEAPON_CHAINSAW},
{347, "Silenced 9mm", 1500, 150, WEAPON_SILENCED},
{348, "Desert Eagle", 2500, 150, WEAPON_DEAGLE},
{350, "Sawed Off Shotgun", 8000, 30, WEAPON_SAWEDOFF},
{351, "Spas12 Shotgun", 4500, 100, WEAPON_SHOTGSPA},
{352, "Micro-UZI", 3500, 500, WEAPON_UZI},
{353, "MP5", 3000, 300, WEAPON_MP5},
{372, "Tec-9", 3500, 500, WEAPON_TEC9},
{358, "Sniper Rifle", 8000, 20, WEAPON_SNIPER},
{355, "Ak47", 4500, 250, WEAPON_AK47},
{356, "M4", 5000, 250, WEAPON_M4},
{359, "RPG", 15000, 1, WEAPON_ROCKETLAUNCHER}
};