13/01/2021, 01:28 PM
(Última modificación: 13/01/2021, 01:30 PM por Kiltr0. Edited 1 time in total.)
hola a todos necesito ayuda tengo un problema con este top resulta que se bugea cuando cuando jugadores con nick con simbolos o tilde o cosas así se bugea y cuando luego alguien quiere abrirlo muestra algo que nada que ver no se que pueda ser o sera que esta mal diseñado el top ?
ojala me puedan ayudar :c
ojala me puedan ayudar :c
Código PHP:
public showpro15(id)
{
new buffer[1536], name[32]
new len = formatex(buffer, charsmax(buffer) - len, "<body bgcolor=black><table width=100%% cellspacing=0 cellpadding=2><tbody><tr style=color:white; align=center bgcolor=black>")
len += formatex(buffer[len], charsmax(buffer) - len, "<th>#</th><th>JUGADOR</th><th>TIEMPO</th><th>FECHA</th></tr>")
for (new i = 0; i < 15; i++)
{
name = Pro_Names[i]
if( Pro_Tiempos[i] > 9999999.0 )
{
len += formatex(buffer[len], charsmax(buffer) - len, "<tr align=center><td>%d</td><td>%s</td><td>%s</td><td>%s</td>", (i+1), "", "", "")
}
else
{
new minutos, Float:segundos
minutos = floatround(Pro_Tiempos[i], floatround_floor)/60
segundos = Pro_Tiempos[i] - (60*minutos)
len += formatex(buffer[len], charsmax(buffer) - len, "<tr style=color:white; align=center bgcolor=black><td>%d</td><td>%s</td><td style=color:lime;>%02d:%s%.5f</td><td>%s</td>", (i+1), Pro_Names[i], minutos, segundos < 10 ? "0" : "", segundos, Pro_Date[i])
}
}
len += formatex(buffer[len], charsmax(buffer) - len, "</table></body>")
show_motd(id, buffer, "Clasificacion Pro15")
return PLUGIN_HANDLED
}