I have this
PHP Code:
new const WEAPONPRICES[][] = { "", "0", "", "0", "", "0", "", "0", "0",
"", "0", "0", "0", "0", "0", "0",
"0", "0", "0", "0", "0",
"150", "0", "0", "0", "", "0",
"0", "0", "", "0" }
when i use this, it works
PHP Code:
static weapon
weapon = get_weaponid(g_primary_items[weap])
client_print(id, print_console, "%s", WEAPONPRICES[weapon])
but if i do this
PHP Code:
static weapon
weapon = get_weaponid(g_primary_items[weap])
static price
price = WEAPONPRICES[weapon]
it says
Quote:
|
Error: Must be assigned to an array on line (doesent matter what line)
|
plz help