Timer issue...

Blitz3D Forums/Blitz3D Beginners Area/Timer issue...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Digital Fortress, I know I told you about this before... :)
If Millisecs() = timer + 1800000 ;(30 minutes)
    ;do stuff
EndIf

The problem with the code above is that Millisecs() has to EQUAL timer + 1800000. This should be changed to greater than. The odds of it being equal are very small.

Heres what it should read.
If Millisecs() > timer + 1800000 ;(30 minutes)
    ;do stuff
EndIf


By the way, it doesn't have to be anywhere near the RenderWorld command. In fact, if his program isn't using 3D graphics, he wouldn't even be using a RenderWorld command. It just has to be in his main loop.


P.S. In case my post sounds offensive, it's not intended to be. I hope no offense was taken D.F. I'm just helping out.