Thread: if (timeout)
View Single Post
  #1  
Old 04-24-2009, 01:20 PM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
if (timeout)

PHP Code:
function onBla() {
if (
timeout) {
bla!
 }

why this isnt working?
for example:
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
 if (
player.chat == "Test") {
  
onTestTime();
  
settimer(0.05);
 }
}

function 
onTimeout() {
settimer(.05);
}

function 
onTestTime() {
  
sendtorc("works?");
 if (
timeout) {
  
settimer(.05);
  
sendtorc("timeout?");
 }
  
onTestTime();
  
settimer(0.05);

I know, the script itself is useless, but it MUST have a timeout, doesnt it? So, it sends the "works?" like a spam, but NO "timeout?"

someone can explain why?
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote