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(id, name, 26)
len += formatex(menu[len], sizeof menu - 1 - len, "\yEstadisticas de jugador^n^n")
len += formatex(menu[len], sizeof menu - 1 - len, "\yAlias:\w %s^n", name)
len += formatex(menu[len], sizeof menu - 1 - len, "\yAP:\w %d \y Clase Humana: \w%s^n", g_ammopacks[id], level_name[ID_CLASE])
len += formatex(menu[len], sizeof menu - 1 - len, "\yAP para proximo nivel:\w %d^n", g_nextlevel[id] - g_ammopacks[id])
len += formatex(menu[len], sizeof menu - 1 - len, "\yNiveles para proxima clase:\w %d^n", 15 - (g_level[id] - 15*ID_CLASE))
len += formatex(menu[len], sizeof menu - 1 - len, "\yProxima clase:\w %s^n", level_name[ID_CLASE + 1])
len += formatex(menu[len], sizeof menu - 1 - 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 - 1 - 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 - 1 - 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 - 1 - len, "\yHumanos Infectados:\w %d^n", g_stats_2[id])
len += formatex(menu[len], sizeof menu - 1 - 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(id, KEYSMENU, menu, -1, "Stats")
}