AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How can i make a motd how this? (https://forums.alliedmods.net/showthread.php?t=131123)

Ending 07-01-2010 09:56

How can i make a motd how this?
 
How can i make a motd how this?

[IMG]http://img710.**************/img710/8405/imagenaw.png[/IMG]


i tried this way, but that doesn't work.

PHP Code:

public Test(id)
{    
    new 
motd[1501], len;
    
    
len format(motdsizeof motd 1,"<body bgcolor=#000000><font color=#98f5ff><pre>");
    
    
len += format(motd[len], (sizeof motd 1) - len,"<TABLE>");
    
len += format(motd[len], (sizeof motd 1) - len,"<TR>");
    
len += format(motd[len], (sizeof motd 1) - len,"<TD><b>%-22.22s</b>: %10i</TD>""Option1",Option1[id]);
    
len += format(motd[len], (sizeof motd 1) - len,"<TD><b>%-22.22s</b>: %10i</TD>""Option2",Option2[id]);
    
len += format(motd[len], (sizeof motd 1) - len,"<TD><b>%-22.22s</b>: %10i</TD>""Option3",Option3[id]);
    
len += format(motd[len], (sizeof motd 1) - len,"</TR>");
    
len += format(motd[len], (sizeof motd 1) - len,"<TR>");
    
len += format(motd[len], (sizeof motd 1) - len,"<TD><b>%-22.22s</b>: %10i</TD>""Option4",Option4[id]);
    
len += format(motd[len], (sizeof motd 1) - len,"<TD><b>%-22.22s</b>: %10i</TD>""Option5",Option5[id]);
    
len += format(motd[len], (sizeof motd 1) - len,"<TD><b>%-22.22s</b>: %10i</TD>""Option6",Option6[id]);
    
len += format(motd[len], (sizeof motd 1) - len,"</TR>");
    
len += format(motd[len], (sizeof motd 1) - len,"</TABLE>");
    
    
show_motd(idmotd"Something");
    
    
    return 
PLUGIN_HANDLED



JaGareN 07-01-2010 11:51

Re: How can i make a motd how this?
 
http://www.w3schools.com/html/html_tables.asp

Ending 07-01-2010 13:57

Re: How can i make a motd how this?
 
Quote:

Originally Posted by JaGareN (Post 1225553)

Thanks =)

JaGareN 07-01-2010 17:57

Re: How can i make a motd how this?
 
Btw, your format is wrong
Do it like this instead
PHP Code:

len += format(motd[len], sizeof (motd) - len"<table>");
//etc... 



All times are GMT -4. The time now is 14:45.

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