This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

New AMXX Menu System


Post New Thread Reply   
 
Thread Tools Display Modes
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 06-09-2010 , 14:05   Re: New AMXX Menu System
Reply With Quote #261

Hmm I still think that this qualifies as an menu thing, if it doesn't then sorry
vL. is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-09-2010 , 14:17   Re: New AMXX Menu System
Reply With Quote #262

Please do not post in this thread unless it is about the examples provided or a question about the new menu system.

If you are trying to get something working for your menu or need help with something, you should post in Scripting Help (Find help for scripting problems.)

Any future posts that should be located there will be split from this topic and placed there.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-21-2010 , 16:26   Re: New AMXX Menu System
Reply With Quote #263

Hi,

I just have one question about the Advanced Vote Menu...

Code:
gVoteID[voteid_count] = tempid;

What is this? o.O

Is never used in the example...

For that i understand is something like this:

Menu:

1. Player 1 = id of the player = gVoteID[0]
2. Player 2 = id of the player = gVoteID[1]
3. Player 3 = id of the player = gVoteID[2]
...
...
7. Player 7 = id of the player = gVoteID[6]

I am correct?
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 06-21-2010 at 16:29.
Alucard^ is offline
Send a message via Skype™ to Alucard^
Old 06-21-2010, 16:26
Alucard^
This message has been deleted by Alucard^. Reason: doble post bug
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-22-2010 , 02:22   Re: New AMXX Menu System
Reply With Quote #264

Quote:
Originally Posted by Alucard^ View Post
Hi,

I just have one question about the Advanced Vote Menu...

Code:
gVoteID[voteid_count] = tempid;

What is this? o.O

Is never used in the example...

For that i understand is something like this:

Menu:

1. Player 1 = id of the player = gVoteID[0]
2. Player 2 = id of the player = gVoteID[1]
3. Player 3 = id of the player = gVoteID[2]
...
...
7. Player 7 = id of the player = gVoteID[6]

I am correct?
Yes that is correct. It is meant so that the scripter can place in what they want to associate with that option. This could be a map id, player id, etc.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 06-27-2010 , 17:52   Re: New AMXX Menu System
Reply With Quote #265

Haven't found out how to make an empty line in the menu, maby I haven't searched the right keyword, I don't know. Also I have tried some the solutions what I thought, didn't work ether.

So basically what I need is this:

PHP Code:
Menu name goes right here
1. First menu item
2. Second menu item

4. Fourth menu item

6. Sixth menu item

0. 
Exit 
vL. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-27-2010 , 17:56   Re: New AMXX Menu System
Reply With Quote #266

The last time I tried it it seemed like it was bugged. But try it and see if it works for you.

PHP Code:
/**
 * Adds a blank line to a menu.
 *
 * @param menu            Menu resource identifier.
 * @param slot            1 (default) if the line should shift the numbering down.
 *                         0 if the line should be a visual shift only.
 * @noreturn
 * @error                Invalid menu resource.
 */
native menu_addblank(menuslot=1); 
__________________
fysiks is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 06-27-2010 , 18:35   Re: New AMXX Menu System
Reply With Quote #267

Indeed it doesn't work, it disables the next item in the menu.

PHP Code:
new menu menu_create("Menu name goes right here""menu_handler");
    
    
menu_additem(menu"First menu item""1"0);
    
menu_additem(menu"Second menu item""2"0);
    
menu_addblank(id);
    
menu_additem(menu"Fourth menu item""4"0);
    
menu_addblank(id);
    
menu_additem(menu"Sixth menu item""6"0);

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0); 
vL. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-27-2010 , 19:03   Re: New AMXX Menu System
Reply With Quote #268


Code:
menu_addblank(menu)
__________________
fysiks is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 06-27-2010 , 19:08   Re: New AMXX Menu System
Reply With Quote #269

Yeah sorry, idk why I typed id here, in the plugin it was menu when I tested it :p
vL. is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 06-28-2010 , 17:25   Re: New AMXX Menu System
Reply With Quote #270

Also I read from the first post.

Code:
#define MPROP_BACKNAME  2  /* Name of the back button (param1 = string) */
#define MPROP_NEXTNAME  3  /* Name of the next button (param1 = string) */
#define MPROP_EXITNAME  4  /* Name of the exit button (param1 = string) */
So they would be like this?

Code:
#define MPROP_BACKNAME  BackButton
#define MPROP_NEXTNAME  FowardButton
#define MPROP_EXITNAME  ExitButton
vL. is offline
Reply



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 01:47.


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