hi all,
I have copied a piece of code from my old script to a new one and now it no longer functions correctly.
Code:
done=false
while(done==false){
id=getRandom(999999999)
if(receiveString("enforced_chastity."+id)==null{done=true}
}
it was supposed to find a random id not currently being used and it used to work however it now hangs the system.
i used the following
Code:
done=false
while(done==false){
id=getRandom(999999999)
show(id)
test=receiveString("enforced_chastity."+id)
show(test)
if(receiveString("enforced_chastity."+id)==null){done=true}
}
to test what was happening and the show(id)is working (displaying random numbers every second or so)
but the while loop never ends.
what have i missed?