31/05/2020, 12:36 AM
(Última modificación: 31/05/2020, 12:41 AM por GeX~'. Edited 2 times in total.)
Hola, estoy diseñando un top15 del kz arg pero se muestra incompleto, al abrirlo me muestra solo hasta el 12 y no hasta el 15 como debe ser, capas deba ser que este mal diseñado en html ya que tengo poco conocimiento en eso, este es el codigo :
imagen a lo que me refiero :
Código PHP:
public showpro15(id)
{
new len = 0, buffer[MAX_MOTD_LENGTH], name[MAX_NAME_LENGTH+1], i, color[7];
len = format(buffer[len], charsmax(buffer) - len, "<table border=1 width=100%% height=100%% cellspacing=0 cellpadding=2><tbody><tr align=center bgcolor=#F4DA06>")
len += format(buffer[len], charsmax(buffer) - len, "<th width=5%%>#</th><th width=22%%>JUGADOR</th><th width=10%%>TIEMPO</th><th width=13%%>ARMA</th></tr>")
for(i = 0; i < 15; i++)
{
name = Pro_Names[i]
switch(i+1) {
case 1: color = "lime"
case 2: color = "cyan"
case 3: color = "orange"
case 4..15: color = "white"
}
if( Pro_Tiempos[i] > 9999999.0 )
{
len += format(buffer[len], charsmax(buffer) - len, "<tr style=color:%s; align=center bgcolor=#272727><td>%d</td><td>%s</td><td>%s</td><td>%s</td>", color, (i+1), "", "", "")
}
else
{
new minutos, Float:segundos
minutos = floatround(Pro_Tiempos[i], floatround_floor)/60
segundos = Pro_Tiempos[i] - (60*minutos)
len += format(buffer[len], charsmax(buffer) - len, "<tr style=color:%s; align=center bgcolor=#272727><td>%d</td><td>%s</td><td>%02d:%s%.5f</td><td>%s</td>", color, (i+1), Pro_Names[i], minutos, segundos < 10 ? "0" : "", segundos, Pro_Weapons[i])
}
}
len += format(buffer[len], charsmax(buffer) - len, "</tr></tbody></table>")
show_motd(id, buffer, "Top Pro15")
return PLUGIN_HANDLED
}
imagen a lo que me refiero :