Hi, I tryed to create plugin with motd but I really don't know how so I take one plugin where was created in motd window.
So what I wanted to create... To see some stats about own server ... or just please show how to create simple motd...
Example :
PHP Code:
new srvmaps[32],srvnextmaps[32], srvips[35], srvnames[101], srvtimelefts[6]
/etc...
And now comes in motd...
PHP Code:
static motd[1501], len;
len = format(motd, 1500,"<body bgcolor=#000000><font color=#87cefa><pre>");
len += format(motd[len], 1500-len,"<center><h4><font color=^"blue^"> You'r statistics in '%s' </font></h4></center>", (id, "hostname: %s",srvnames));
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>(id, "tcp/ip : %s", srvips)</B> <font color=^"white^"</color></left>^n");
And with this last line I can't compile it
Quote:
|
Error: Expected token: ",", but found "-identifier-" on line 45
|
I look at that lomg time and can't find where I miss...
And I thought when I use in this plugin ...
PHP Code:
if (!is_user_bot(player[id]))
{
if (is_player_alive[id])
{
playerteams = "Terrorist"
playerteams = "CT"
else
{
playerteams = "SPEC"
}
How can I add these lines in motd?
Thank You...
__________________