SphereCommunity
TimerF Stop, FunctionName - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: TimerF Stop, FunctionName (/Thread-TimerF-Stop-FunctionName)



TimerF Stop, FunctionName - PePs1Man - 07-14-2017 09:33 AM

Hello,

I was wondering if this was working correctly for you : "TimerF Stop, FunctionName"

It doesn't seem to stop the timer properly for me, using 56c, april 10th build.


RE: TimerF Stop, FunctionName - darksun84 - 07-14-2017 06:55 PM

Works fine here, last nightly build, how are you using the timerf stop?


RE: TimerF Stop, FunctionName - PePs1Man - 07-15-2017 03:39 AM

Like the syntax suggest: TimerF STOP,FunctionName.

This was both TimerF @ 1 second. I've worked around it using tags, ...


RE: TimerF Stop, FunctionName - darksun84 - 07-15-2017 04:19 AM

Does the function passed in timerf have arguments?

Example:
Code:
[function calltimer]
timerf <argn1>,testtimer 2
timerf stop,testtimer 1

In this case the timerf STOP will not stop the execution of testtimer ecause the argument values are different.


RE: TimerF Stop, FunctionName - PePs1Man - 07-15-2017 09:07 AM

Hello,

I did this:

Code:
[function a]
timerf 1,a
...some stuff and checks
timerf stop,a