Hi elfersp,
you have to wait around one second until the client has connected the session and is able to receve variables.

Code:

if ((event_type == event_join) && (people_connected <= MAX_CONNECTIONS))
{
sleep(1);
ifdef server;
people_connected += 1; // another person connected
send_var(people_connected); // send number of people connected
server_says_start = TRUE; // send it's ok to go to newest client
send_var(server_says_start); // send start message
endif; // ifdef server
}



That should solve your problem.

Ifdef server is not necessary, because only the server has the event event_join.

Dark_samurai

Last edited by Dark_samurai; 10/29/06 08:35.

ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version