Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using sum to do certain action
#2
I try it, but display error message:
this variable is already declared. If you want to use the same variable, remove the second declaration (typename and space before the variable).
 
Code:
Copy      Help
int time=timeGetTime+5000
rep
    out timeGetTime
    if (time<timeGetTime)
        out "5 seconds after"
        int time=timeGetTime+5000
        out "reset timestamp"
        shutdown -6
        wait 0.2

Works!
Code:
Copy      Help
int time=timeGetTime+5000
rep

    if (time<timeGetTime)
        out "passaram os segundos"
        time=timeGetTime+5000
        out "resetando timestamp"
        wait 2


Messages In This Thread
Using sum to do certain action - by badrobotic - 05-21-2023, 10:54 PM
RE: Using sum to do certain action - by badrobotic - 05-22-2023, 11:12 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)