Using time
Blitz3D Forums/Blitz3D Beginners Area/Using time
| ||
I have a game that has something you can only do once a day, so I need some code to run if the computer clock says it's 12:00 pm. I think I've seen it done before... Would it be possible to do something like this: If CurrentTime()=24,0,0 Then code EndIf |
| ||
If Left$(CurrentTime(),5) = "12:00" ;code EndIf |
| ||
This will let you do exactly 12:00 pmIf left(CurrentTime(),8) = "12:00:00" code EndIf Nice code by the way GFK |
| ||
Thanks, but something wierd happened when I used that code. My computer clock stopped, or atleast the little one at the bottom right of my screen did. If I double click on it it still displaus the current time. Odd though, I will try restarting my computer. |
| ||
Did you try selecting the Adjust Date/Time option? That should show the current time. Post your code and I can help you. |
| ||
Hmm, clock seems to work fine now. |
| ||
K |
| ||
Thats weird... I tried it on XPpro (athlon 64 etc.) and it didn't stop anything. Had to wrap it in a B3D codelet... -RZ |
| ||
Yea, I think it was just a one time thing with my crappy computer. |