Raised This Month: $ Target: $400
 0% 

Solved Menu Number


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 07-10-2020 , 10:39   Re: Menu Number
Reply With Quote #10

I changed it from 512 to 2048 and keys from 511 to 2047 and i still have the same thing
PHP Code:
public show_zclass_menu(id,offset)
{
    if(
offset<0offset 0

    
new keyscurnummenu[2048], szCache1[32], szCache2[32], iCache3
    
for(new i=offset;i<g_iZClasses;i++)
    {
        
ArrayGetString(g_zclass_nameiszCache1charsmax(szCache1))
        
ArrayGetString(g_zclass_infoiszCache2charsmax(szCache2))
        
iCache3 ArrayGetCell(g_zclass_lvli)
        
        
// Add to menu
        
if (== g_iZombieClass[id])
            
format(menu,2047,"%s^n\r[\d%d\r].\d %s \r[ \y%s\r ] \d(Level :: %d) \r-=\wSELECTED\r=-"menucurnum+1szCache1szCache2iCache3)
        else
            
format(menu,2047,"%s^n\r[\w%d\r].\w %s \r[ \y%s\r ] \r(\wLevel\r ::\w %d\r)"menucurnum+1szCache1szCache2iCache3)
        
        
g_iMenuOptions[id][curnum] = i
        keys 
+= (1<<curnum)
    
        
curnum++
        
        if(
curnum==8)
            break;
    }

    
format(menu,2047,"\ySelect Your Class:^n\r%s^n"menu)
    if(
curnum==&& offset<12)
    {
        
keys += (1<<8)
        
format(menu,2047,"%s^n\r[\w9\r].\w Next",menu)
    }
    if(
offset)
    {
        
keys += (1<<9)
        
format(menu,2047,"%s^n\r[\w0\r].\w Back",menu)
    }

    
show_menu(id,keys,menu,-1,"ZClassSelect")

Supremache 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 17:13.


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