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