Raised This Month: $ Target: $400
 0% 

Auto-paginate doesn't work?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-27-2011 , 13:29   Re: Auto-paginate doesn't work?
Reply With Quote #3

Quote:
Originally Posted by .Dare Devil. View Post
new key[6]
to
new key[7]
That won't change anything. In fact, he could even use new key[3]

EDIT:

All seven options show up on one page for me with this test plugin (note the change of TotalReasonsGlobal; this way you won't need to change the number when adding or removing options from reasons_global):

PHP Code:
#include <amxmodx>

new const reasons_global[][64] =
{
    
"Camping",
    
"Spamming",
    
"Insulting",
    
"Bad Behaving",
    
"High Ping",
    
"Racism",
    
"Cheating"
}
new 
TotalReasonsGlobal sizeof(reasons_global)

public 
plugin_init()
{
    
register_clcmd("say test""GlobalreasonMenu")
}

public 
GlobalreasonMenu(id)
{
    new 
ReasonmenuTemp[64]
    
formatex(Temp,63"\rChoose reason:")

    
Reasonmenu menu_create(Temp"globalban_reason_handler")
    new 
key[3]

    for(new 
iTotalReasonsGlobali++)
    {
        
num_to_str(ikeysizeof(key)-1)
        
menu_additem(Reasonmenureasons_global[i], key0)
    }
    
menu_display(idReasonmenu)
    return 
PLUGIN_HANDLED
}

public 
globalban_reason_handler(idmenuitem)
{
    
client_print(0print_chat"Option selected")

__________________

Last edited by fysiks; 03-27-2011 at 13:45.
fysiks 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 14:38.


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