View Single Post
  #715  
Old 10-22-2010, 02:47 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Latest V6 broke the dialog system on Zodiac, narrowed it down to the use of waitfor.

PHP Code:
//#CLIENTSIDE

/*
Proper output:

sending request
request received
returning result 'test'
result returned 'test'

What happens when you have a waitfor:

sending request
request received
returning result 'test'
result returned ''

What happens without a waitfor:

sending request
request received
returning result 'test'
result returned 'test'
*/

function onCreated() {
  echo(
"sending request");
  
temp.test requestVar("test");
  echo(
"result returned '" temp.test "'");
}

public function 
requestVar(a) {
  echo(
"request received");
  
waitfor(this"randomevent"0.05); // Causes problem
  
echo("returning result '" "'");
  return 
a;

__________________
Quote:
Reply With Quote