Raised This Month: $32 Target: $400
 8% 

[ES] Colocar columnas HTML en el /top15 (Solucionado)


  
 
 
Thread Tools Display Modes
p4rp4d30
Veteran Member
Join Date: Mar 2007
Old 10-17-2010 , 19:37   Re: [ES] Colocar columnas HTML en el /top15 (Solucionado)
#11

El pt ta esprando que alguien haga esto que yo hice porque nunca encontro la solucion...
pero se las dejo y que el pt tmb aprenda

es facil la solucion es agregar

<table border="0" cellspacing="0" cellpadding="0">

al principio de todo antes de hacer los <td>

y listo

el problema que el cerro un </table> pero nunca lo habia abierto asique por eso se le via todo para el orto y el table se crea esa estructura que puse arriba

Abrimos tabla
<table>
Metemos una fila
<tr>
Luego dentro de la fila metemos una columna o las que quremos
<td> cerramos la columna que es la primera ya que se pueden crear mas</td>
cerramos Fila
</tr>
y cerramos la estructura de table
</table>

Las filas son las que son en vertical ocea como 1 grilla son datos que van para abajo y las columnas son datos en vertical para la derecha.

PD: de mas esta decir que de ahora en mas cuando haga 1 post no le pienso responder ni ayudar por hacerse el vivo y boludo.

saludos

Last edited by p4rp4d30; 10-17-2010 at 19:40.
p4rp4d30 is offline
Xs-Chuki-Xs
Senior Member
Join Date: Jan 2010
Location: Argentina
Old 10-17-2010 , 21:41   Re: [ES] Colocar columnas HTML en el /top15 (Solucionado)
#12

Perdon a todos no estaba en la PC que estoy siempre y me falto poner que les iba a dar la solucion apenas llegue

sry a todos encerio u.u

De aca pude poner el top con columnas... https://forums.alliedmods.net/showthread.php?t=64760

Last edited by Xs-Chuki-Xs; 10-17-2010 at 21:45.
Xs-Chuki-Xs is offline
Bello2
Senior Member
Join Date: Jun 2010
Location: Venezuela
Old 10-19-2010 , 11:16   Re: [ES] Colocar columnas HTML en el /top15 (Solucionado)
#13

Quote:
Originally Posted by p4rp4d30 View Post
El pt ta esprando que alguien haga esto que yo hice porque nunca encontro la solucion...
pero se las dejo y que el pt tmb aprenda

es facil la solucion es agregar

<table border="0" cellspacing="0" cellpadding="0">

al principio de todo antes de hacer los <td>

y listo

el problema que el cerro un </table> pero nunca lo habia abierto asique por eso se le via todo para el orto y el table se crea esa estructura que puse arriba

Abrimos tabla
<table>
Metemos una fila
<tr>
Luego dentro de la fila metemos una columna o las que quremos
<td> cerramos la columna que es la primera ya que se pueden crear mas</td>
cerramos Fila
</tr>
y cerramos la estructura de table
</table>

Las filas son las que son en vertical ocea como 1 grilla son datos que van para abajo y las columnas son datos en vertical para la derecha.

PD: de mas esta decir que de ahora en mas cuando haga 1 post no le pienso responder ni ayudar por hacerse el vivo y boludo.

saludos
se agradece tu aporte amigo ^^ pero podrias ser un poco mas preciso?, con esto quiero decir puedes mostrar la linea completa para ver bien como lo hicistes porq esa parte del codigo se que muchos no la entienden y yo no la entiendo mucho saludos
__________________
Bello2 is offline
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 10-19-2010 , 11:44   Re: [ES] Colocar columnas HTML en el /top15 (Solucionado)
#14

Es html no es tan difícil como parece.
Mirá te dejo un ejemplo de como podés hacer las tablas

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin"Test""1.0""G_often" )
    
    
register_clcmd"say /top15""CmdTestTop15" )
}

public 
CmdTestTop15id )
{
    static 
Name[33], iMotd[1501], iLen;
    
    
get_user_nameidName32 )
    
    
iLen format(iMotdsizeof iMotd 1,"<body bgcolor=#ff0000><font color=#2efe9a><pre>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<center><h2> Top 15 </h2></center>^n^n");
    
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<table border=1>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>#</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Nick</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Kills</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Hits</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Shots</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>HS</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Eff.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Acc.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%9i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%-22.22s</td>",Name )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%8i</td>",10 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%7i</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%6i</td>"131 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%5i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%4i</td>",130)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%3i%%</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</table>");
    
    
show_motdidiMotd"Top15");
    
    return 
PLUGIN_HANDLED;


Resultado:
[IMG]http://img257.**************/img257/2014/testig.png[/IMG]


Más acerca de las tablas, y html:

Click Here
__________________
Reality is wrong, dreams are for real.
g_often is offline
Old 10-19-2010, 16:35
Asdito´^
This message has been deleted by Asdito´^. Reason: solved
p4rp4d30
Veteran Member
Join Date: Mar 2007
Old 10-19-2010 , 23:10   Re: [ES] Colocar columnas HTML en el /top15 (Solucionado)
#15

Quote:
Originally Posted by g_often View Post
Es html no es tan difícil como parece.
Mirá te dejo un ejemplo de como podés hacer las tablas

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin"Test""1.0""G_often" )
    
    
register_clcmd"say /top15""CmdTestTop15" )
}

public 
CmdTestTop15id )
{
    static 
Name[33], iMotd[1501], iLen;
    
    
get_user_nameidName32 )
    
    
iLen format(iMotdsizeof iMotd 1,"<body bgcolor=#ff0000><font color=#2efe9a><pre>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<center><h2> Top 15 </h2></center>^n^n");
    
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<table border=1>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>#</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Nick</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Kills</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Hits</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Shots</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>HS</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Eff.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Acc.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%9i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%-22.22s</td>",Name )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%8i</td>",10 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%7i</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%6i</td>"131 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%5i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%4i</td>",130)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%3i%%</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</table>");
    
    
show_motdidiMotd"Top15");
    
    return 
PLUGIN_HANDLED;


Resultado:
[IMG]http://img257.**************/img257/2014/testig.png[/IMG]


Más acerca de las tablas, y html:

Click Here
Exactamente a eso me referia ves yo le doy lo que necesita y despuies es puro buscar y crea y tener imaginacion y 1 poco conocimientos nada mas es simplemente igeniarcela para hacerlo mira ves le di lo el html y el lo paso a pawn eso es lo que se necesita para aprender.

Lo unico que los th tienen que ser td ya que queda obsoleto th va para qien le gusta mas como le guste... pero es preferible usar td y tr que es lo mas comun que un navegador interpreta

saludos
p4rp4d30 is offline
Bello2
Senior Member
Join Date: Jun 2010
Location: Venezuela
Old 10-20-2010 , 10:50   Re: [ES] Colocar columnas HTML en el /top15 (Solucionado)
#16

muchas gracias g_often y p4rp4d30 xd

g_often o p4rp4d30 veo que saben bastante modificar el stats.sma pueden ayudarme con esto:

https://forums.alliedmods.net/showthread.php?t=135409

nunca pude terminar de encontrar la solucion :S
__________________
Bello2 is offline
Asdito´^
Veteran Member
Join Date: Feb 2010
Location: Santa Fe, Argentina
Old 10-20-2010 , 14:52   Re: [ES] Colocar columnas HTML en el /top15 (Solucionado)
#17

Por que me anda esto
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin"Test""1.0""G_often" )
    
    
register_clcmd"say /top15""CmdTestTop15" )
}

public 
CmdTestTop15id )
{
    static 
Name[33], iMotd[1501], iLen;
    
    
get_user_nameidName32 )
    
    
iLen format(iMotdsizeof iMotd 1,"<body bgcolor=#ff0000><font color=#2efe9a><pre>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<center><h2> Top 15 </h2></center>^n^n");
    
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<table border=1>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>#</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Nick</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Kills</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Hits</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Shots</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>HS</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Eff.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Acc.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%9i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%-22.22s</td>",Name )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%8i</td>",10 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%7i</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%6i</td>"131 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%5i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%4i</td>",130)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%3i%%</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</table>");
    
    
show_motdidiMotd"Top15");
    
    return 
PLUGIN_HANDLED;

y no esto?
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin"Test""1.0""G_often" )
    
    
register_clcmd"say /top15""CmdTestTop15" )
}

public 
CmdTestTop15id )
{
    static 
Name[33], iMotd[1501], iLen;
    
    
get_user_nameidName32 )
    
    
iLen format(iMotdsizeof iMotd 1,"<body bgcolor=#ff0000><font color=#2efe9a><pre>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<center><h2> Top 15 </h2></center>^n^n");
    
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<table border=1>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>#</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Nick</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Kills</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Hits</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Shots</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>HS</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Eff.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Acc.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    for(new 
0>= 2i++) {
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%9i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%-22.22s</td>",Name )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%8i</td>",10 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%7i</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%6i</td>"131 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%5i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%4i</td>",130)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%3i%%</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    }
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</table>");
    
    
show_motdidiMotd"Top15");
    
    return 
PLUGIN_HANDLED;

(con el for)
__________________
################################
Asdito´^ is offline
Send a message via MSN to Asdito´^
p4rp4d30
Veteran Member
Join Date: Mar 2007
Old 10-20-2010 , 16:41   Re: [ES] Colocar columnas HTML en el /top15 (Solucionado)
#18

Quote:
Originally Posted by Asdito´^ View Post
Por que me anda esto
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin"Test""1.0""G_often" )
    
    
register_clcmd"say /top15""CmdTestTop15" )
}

public 
CmdTestTop15id )
{
    static 
Name[33], iMotd[1501], iLen;
    
    
get_user_nameidName32 )
    
    
iLen format(iMotdsizeof iMotd 1,"<body bgcolor=#ff0000><font color=#2efe9a><pre>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<center><h2> Top 15 </h2></center>^n^n");
    
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<table border=1>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>#</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Nick</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Kills</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Hits</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Shots</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>HS</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Eff.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Acc.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%9i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%-22.22s</td>",Name )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%8i</td>",10 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%7i</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%6i</td>"131 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%5i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%4i</td>",130)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%3i%%</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</table>");
    
    
show_motdidiMotd"Top15");
    
    return 
PLUGIN_HANDLED;

y no esto?
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin"Test""1.0""G_often" )
    
    
register_clcmd"say /top15""CmdTestTop15" )
}

public 
CmdTestTop15id )
{
    static 
Name[33], iMotd[1501], iLen;
    
    
get_user_nameidName32 )
    
    
iLen format(iMotdsizeof iMotd 1,"<body bgcolor=#ff0000><font color=#2efe9a><pre>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<center><h2> Top 15 </h2></center>^n^n");
    
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<table border=1>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>#</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Nick</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Kills</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Hits</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Shots</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>HS</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Eff.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Acc.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    for(new 
0>= 2i++) {
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%9i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%-22.22s</td>",Name )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%8i</td>",10 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%7i</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%6i</td>"131 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%5i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%4i</td>",130)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%3i%%</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    }
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</table>");
    
    
show_motdidiMotd"Top15");
    
    return 
PLUGIN_HANDLED;

(con el for)
de las 2 maneras anda

fijate aca no hago for y es igual al tuyo con for.

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin"Test""1.0""G_often" )
    
    
register_clcmd"say /top15""CmdTestTop15" )
}

public 
CmdTestTop15id )
{
    static 
Name[33], iMotd[1501], iLen;
    
    
get_user_nameidName32 )
    
    
iLen format(iMotdsizeof iMotd 1,"<body bgcolor=#ff0000><font color=#2efe9a><pre>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<center><h2> Top 15 </h2></center>^n^n");
    
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<table border=1>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>#</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Nick</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Kills</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Hits</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Shots</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>HS</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Eff.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<th>Acc.</th>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%9i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%-22.22s</td>",Name )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%8i</td>",10 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%7i</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%6i</td>"131 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%5i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%4i</td>",130)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%3i%%</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
 
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%9i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%-22.22s</td>",Name )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%8i</td>",10 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%7i</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%6i</td>"131 )
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%5i</td>",)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%4i</td>",130)
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<td>%3i%%</td>")
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</tr>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"</table>");
    
    
show_motdidiMotd"Top15");
    
    return 
PLUGIN_HANDLED;

p4rp4d30 is offline
Asdito´^
Veteran Member
Join Date: Feb 2010
Location: Santa Fe, Argentina
Old 10-20-2010 , 16:48   Re: [ES] Colocar columnas HTML en el /top15 (Solucionado)
#19

A mi con for no me anda, testealo como yo te lo puse, y lo necesito con for para hacer algo no quiero hacer 20 veces las mismas lineas xD
__________________
################################
Asdito´^ is offline
Send a message via MSN to Asdito´^
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 10-20-2010 , 19:15   Re: [ES] Colocar columnas HTML en el /top15 (Solucionado)
#20

Parpadeo a esto no lo saqué de tu code e.e ya lo tenía hace mucho...

@bello
apenas puedo te ayudo, tengo que terminar algo.

@ asdito
Prueba esto:

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin"Test""1.0""G_often" )
    
    
register_clcmd"say /top15""CmdTestTop15" )
}

public 
CmdTestTop15id )
{
    static 
Name[33], iMotd[2001], iLen;
    
    
get_user_nameidName32 )
    
    
iLen format(iMotdsizeof iMotd 1,"<body bgcolor=#ff0000><font color=#2efe9a><pre>");
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<center><h2> Top 15 </h2></center>^n^n");

    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen,"<table border=1><tr><th>#</th><th>Nick</th><th>Kills</th><th>Hits</th><th>Shots</th><th>HS</th><th>Eff</th><th>Acc.</th></tr>");
    
    for( new 
1<= 15i++ )
        
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen"<tr><th>%9i</th><th>%-22.22s</th><th>%8i</th><th>%7i</th><th>%6i</th><th>%5i</th><th>%4i</th><th>%3i%%</th></tr>",iName1051313130)
    
    
iLen += format(iMotd[iLen], (sizeof iMotd 1) - iLen"</table></font>" )
    
    
show_motdidiMotd"Top15");
    
    return 
PLUGIN_HANDLED;

__________________
Reality is wrong, dreams are for real.
g_often 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 20:11.


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