Quote:
Originally Posted by DavidJr
No, because your variable
isn't array.
You can make it like this I guess:
PHP Code:
for(new id = 1; id <=iMaxPlayers; id++) { new menu[iMaxPlayers] for(new i = 1; i < sizeof Weapons; i++) { iMenu[id] = menu_create("Free VIP Guns", "MenuHandler") formatex(Item, charsmax(Item), "Get %s + Deagle", Weapons[i][_name]) menu_additem(menu, Item, "", 0) menu_display(id, menu[id], 0) } }
Yes that's the problem, I tested it in listenserver without anyone, works fine. When I tested it in HLDS with other players, the problem is same as yours.
|
wtf are you talking about?
There's no needs for array.
To OP:
PHP Code:
public MenuHandler(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(id)
Should it be:
PHP Code:
public MenuHandler(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
?
Magic right?