Raised This Month: $ Target: $400
 0% 

Which is the maximun len for a menu?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Unlimited!
BANNED
Join Date: Apr 2009
Old 04-13-2009 , 11:57   Which is the maximun len for a menu?
Reply With Quote #1

I have this menu and sometimes it isn't shown, it doesen't cut, it doesen't show. Another times it does.

PHP Code:
public show_menu_stats(id)
{
    
// Player disconnected
    
if (!is_user_connected(id))
    return;
    
    static 
menu[450], len
    len 
0
    
static name[27]
    
get_user_name(idname26)
    
len += formatex(menu[len], sizeof menu len"\yEstadisticas de jugador^n^n")
    
len += formatex(menu[len], sizeof menu len"\yAlias:\w %s^n"name)
    
len += formatex(menu[len], sizeof menu len"\yAP:\w %d \y Clase Humana: \w%s^n"g_ammopacks[id], level_name[ID_CLASE])
    
len += formatex(menu[len], sizeof menu len"\yAP para proximo nivel:\w %d^n",  g_nextlevel[id] - g_ammopacks[id])
    
len += formatex(menu[len], sizeof menu len"\yNiveles para proxima clase:\w %d^n",  15 - (g_level[id] - 15*ID_CLASE))
    
len += formatex(menu[len], sizeof menu len"\yProxima clase:\w %s^n"level_name[ID_CLASE 1])
    
len += formatex(menu[len], sizeof menu len"\yPuntos humanos:\w %d\y Puntos zombie:\w %d^n"g_h_points[id], g_z_points[id])
    
len += formatex(menu[len], sizeof menu len"\yPuntos de danio:\w %d\y Bonifi. de danio:\w %d^n"g_h_updamage[id], g_h_updmg[id])
    
len += formatex(menu[len], sizeof menu len"\yPuntos de vida:\w %d\y Bonifi. de vida:\w %d^n"g_z_uphealth[id], g_z_uphp[id])
    
len += formatex(menu[len], sizeof menu len"\yHumanos Infectados:\w %d^n"g_stats_2[id])
    
len += formatex(menu[len], sizeof menu len"\yZombies Matados:\w %d^n"g_stats_1[id])
    
//len += formatex(menu[len], sizeof menu - 1 - len, "\yTiempo Jugado:\w %s %H horas^n", jugado)
    
    
show_menu(idKEYSMENUmenu, -1"Stats")

Unlimited! is offline
 


Thread Tools
Display Modes

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 02:15.


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