PHP Code:
new const WEAPONLVLS[][] = { "", "", "", "4", "", "10", "", "1", "5",
"", "", "", "2", "", "6", "6",
"", "", "", "3", "",
"8", "9)", "1", "", "", "",
"4", "9", "", "7" }
//...
static lvls
lvls = WEAPONLVLS[ArrayGetCell(g_primary_weaponids, weap)]
if(g_playerlevel[id] == lvls || g_playerlevel[id] >= lvls)
len += formatex(menu[len], charsmax(menu) - len, "\r%d.\r %s \y(Nivel %d)^n", weap-WPN_STARTID+1, WEAPONNAMES[ArrayGetCell(g_primary_weaponids, weap)], WEAPONLVLS[ArrayGetCell(g_primary_weaponids, weap)])
else
len += formatex(menu[len], charsmax(menu) - len, "\r%d.\d %s (Nivel %d)^n", weap-WPN_STARTID+1, WEAPONNAMES[ArrayGetCell(g_primary_weaponids, weap)], WEAPONLVLS[ArrayGetCell(g_primary_weaponids, weap)])
Error: Must be assigned to an array on line 3248
what is the problem?
__________________