Raised This Month: $ Target: $400
 0% 

[HELP] Menu on new round - works only once


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 06-02-2014 , 12:53   Re: [HELP] Menu on new round - works only once
Reply With Quote #8

Quote:
Originally Posted by DavidJr View Post
No, because your variable

PHP Code:
new menu 
isn't array.

You can make it like this I guess:

PHP Code:
for(new id 1id <=iMaxPlayersid++) 
    { 
        new 
menu[iMaxPlayers]
        for(new 
1sizeof Weaponsi++) 
        { 
            
iMenu[id] = menu_create("Free VIP Guns""MenuHandler"
            
formatex(Itemcharsmax(Item), "Get %s + Deagle"Weapons[i][_name]) 
            
menu_additem(menuItem""0
            
menu_display(idmenu[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(idmenuitem

    if(
item == MENU_EXIT
    { 
        
menu_destroy(id
Should it be:
PHP Code:
public MenuHandler(idmenuitem

    if(
item == MENU_EXIT
    { 
        
menu_destroy(menu
?

Magic right?

Last edited by .Dare Devil.; 06-02-2014 at 12:53.
.Dare Devil. is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode