This still gives me problems, even in Loco's updated Lite-C code. I had to add a wait(-3) for the "people_connected" var to be sent. If I remove the wait, "people_connected" never gets updated on the client.
Code:
function server_called() {
if ((event_type == EVENT_JOIN) && (people_connected < MAX_CONNECTIONS)) {
wait(-3); //I have no idea why this is necessary, but it is
people_connected += 1; // another person connected
send_var(people_connected);
There's really no reason to have to wait THREE seconds for anything, but try it and see if it makes a difference. I still think there's a bug here somewhere.