|
Re: dplay_id not always set
[Re: jcl]
#317262
03/30/10 11:53
03/30/10 11:53
|
Joined: Jul 2008
Posts: 1,178 England
MrGuest
OP
Serious User
|
OP
Serious User
Joined: Jul 2008
Posts: 1,178
England
|
If I use
void dplay_check(var id){
while(!dplay_id) { wait(1); }
beep();
while(!id){ wait(1); }
beep();
}
void client_event(void* str, var id){
switch(EVENT_TYPE){
case EVENT_JOIN:
dplay_check(id);
break;
}
}
There are times when the client doesn't get its dplay_id set, this can happen with only 1 client connected to the host. There are no problems with my script setting dplay_id anywhere as it's a read-only variable.
|
|
|
|