Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Stop a script from a trigger  (Read 836 times)

0 Members and 1 Guest are viewing this topic.

Relbik

  • Guest
Stop a script from a trigger
« on: 08 Oct 2003, 03:21:10 »
Been awhile since I've been here.

Anyway, how can I stop a script from a trigger?

example:
East detected trigger
on activation: []exec "flash.sqs"
on deactivation: ??? "flash.sqs"

Thanks

deaddog

  • Guest
Re:Stop a script from a trigger
« Reply #1 on: 08 Oct 2003, 03:44:26 »
You need a global variable.  Put something like this at the beginning of your flash.sqs script:

stopflash=false

and then somewhere in the script (I assume you have a loop in there):

?stopflash:exit


In the deactivation box of the trigger put:

stopflash=true


Relbik

  • Guest
Re:Stop a script from a trigger
« Reply #2 on: 08 Oct 2003, 03:46:16 »
Excellent!!!  Thanks.