Page 1 of 1

getTime not working?

PostPosted: Mon Apr 10, 2006 1:44 pm
by Kodo
Hi, i wanted to timelmit my beta version of Firetop Mountain, but ive had some problems with the gettime function.

I bought the latest version of GE a few days ago and completely uninstalled by old version before installing it.

When i couldnt get the gettime function to work I went looking for help and found good reference on your Script Reference page (http://www.game-editor.com/docs/script_ ... tm#gettime) even with this help it didnt work so I downloaded the demo listed on this page, when I tried it it doesnt work either, I get script errors (I've not changed the demo at all, its exactly as it was when downloaded) The errors are...

view -> Draw Actor
Error line 1: Incorrect function usage: getTime
Error line 1: Incompatible types: cannot convert from 'const function' to 'struct'

Any ideas?

PostPosted: Mon Apr 10, 2006 2:23 pm
by makslane
I have downloaded the demo and works here.
Make sure thare is no other getTime function in your game.
Open the Game Editor, load the demo and tell me what's happen.

hmm

PostPosted: Mon Apr 10, 2006 4:19 pm
by Kodo
Ok, im sorry about this, but it seems the demo now works fine after I closed down the editor and restarted it, no problems at all! I'm not really sure what happened because as I said I didnt change the demo at all, just loaded it, tried to run it and got the errors mentioned above, but it seems fine now :)

Thanks for the quick reply makslane :)

PostPosted: Tue Apr 11, 2006 10:20 am
by Troodon
How the getTime function works? I mean how it displays the time. Can I do an text actor wich shows the time?
Do the game editor display the time
-like this 12.25
-like this 1225
-like this 12;25
or like this 200604111225?

PostPosted: Tue Apr 11, 2006 9:24 pm
by makslane
You get values for hour, minute second... You can format the data.
Please, look the demo.

PostPosted: Wed Apr 12, 2006 3:07 pm
by Troodon
Wich demo?
Digital_clock.zip?

PostPosted: Wed Apr 12, 2006 5:12 pm
by Kodo

PostPosted: Thu Apr 13, 2006 7:59 am
by Troodon
Thanks! I didn't look it from documentation :D