Hi all.

i got the following problem, my server script is defined in command line only as server (-sv)

Now i want the server to display a message, while he has no connection.

But the only thing i see is the engine starting window, it seems like it does not rally start.....

heres the script, maybe someone has suggestions?

------------------------------------------------

var video_mode = 6; // Starteinstellung für 640x480
var video_depth = 32; // Starteinstellung für 16 Bit Farbtiefe
var video_screen = 2; // Starteinstellung für Fullscreen

STRING Server_message_str = "#50";

FONT arial_font = "Arial",1,20;

TEXT Server_message_txt // displays the messages on the screen

{

pos_x = 20;

pos_y = 40;

layer = 10;

font(arial_font);

string (Server_message_str);

flags = visible;

}

function main()

{


ifdef server;
while (connection == 0)
{
str_cpy(Server_message_str,"No Client connected. /nWaiting for Clients.");
wait(1);
}
if (connection == 1)
{
str_cpy(Server_message_str,"Client connected.");
wait (1);
}
endif;
}