Raised This Month: $51 Target: $400
 12% 

New AMXX Menu System


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-15-2010 , 16:52   Re: New AMXX Menu System
Reply With Quote #301

Quote:
Originally Posted by t3hNox View Post
I have a question about advanced vote menu.
Code:
    //Else if two different voteids recieved all the votes     else if( votes_select == 2 )     {         //If they recieved even votes
        if( votecount[0] == votecount[1] )
        {             //Give it to a random one             client_print(0, print_chat, "Vote has tied. Choosing random from tied votes." );             winner( voteid[ random(2) ] );         }                 //Else if the first recieved the most
        else if( votecount[0] > votecount[1] )
            //Give it to the first         winner( voteid[0] );                 //Else the second recieved the most         else         //Give it to the second         winner( voteid[1] );     }
What is votecount? It is nowhere previously mentioned in the code.
Just a copy past error probably. Change all four to the variable votes
__________________
fysiks is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 08-15-2010 , 16:56   Re: New AMXX Menu System
Reply With Quote #302

Thank you, that worked
t3hNox is offline
Guppy488
Member
Join Date: Jul 2010
Location: Guppy's Scripting Lab
Old 09-14-2010 , 05:41   Re: New AMXX Menu System
Reply With Quote #303

how to use show_menu?
Guppy488 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-14-2010 , 12:37   Re: New AMXX Menu System
Reply With Quote #304

Quote:
Originally Posted by Guppy488 View Post
how to use show_menu?
show_menu() is with the Old Menu System.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Guppy488
Member
Join Date: Jul 2010
Location: Guppy's Scripting Lab
Old 09-15-2010 , 03:25   Re: New AMXX Menu System
Reply With Quote #305

Quote:
Originally Posted by Exolent[jNr] View Post
show_menu() is with the Old Menu System.
then with new menu systerm, how do i make the
Code:
case 1:
        {
        <what to put here to make it send to the next new menu? eg,,i press menu 1, they will send me to (new)menu1>
        return PLUGIN_HANDLED;
        }

Last edited by Guppy488; 09-15-2010 at 04:08. Reason: mistakes
Guppy488 is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 09-15-2010 , 08:24   Re: New AMXX Menu System
Reply With Quote #306

here:
Code:
case 1: new_menu1(id)
Vechta is offline
Guppy488
Member
Join Date: Jul 2010
Location: Guppy's Scripting Lab
Old 09-15-2010 , 09:18   Re: New AMXX Menu System
Reply With Quote #307

ahhh..thanks..will try...
Guppy488 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-15-2010 , 18:27   Re: New AMXX Menu System
Reply With Quote #308

But don't return until after the switch AND after you destroy the menu (unless it's a global menu).
__________________
fysiks is offline
Guppy488
Member
Join Date: Jul 2010
Location: Guppy's Scripting Lab
Old 09-16-2010 , 00:22   Re: New AMXX Menu System
Reply With Quote #309

aye sir!
sir,what's a global menu?
Guppy488 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-16-2010 , 00:34   Re: New AMXX Menu System
Reply With Quote #310

Quote:
Originally Posted by Guppy488 View Post
aye sir!
sir,what's a global menu?
A menu that is created in plugin_init() and never destroyed and is stored in a global variable.
This is done for menus that are not dynamic or will never change.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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:14.


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