stTime not working?

Non-platform specific questions.

stTime not working?

Postby Hblade » Mon May 21, 2012 6:18 pm

I even tried copy and pasting from the "Download demo here" in the script reference. Still no luck, I get an error saying:
Error line 1: Incorrect function usage: getTime
and cannot convert const to struct? >.>

Code: Select all
stTime t = getTime();

Thats the line that gives me the error, and it doesn't matter WHAT I name it, it can be t, or OIEWFINWOEFNo for all that matters.


BUT! heres the comedy of all of this.

I can easilly go in the ONLY SCRIPT in the demo, and change it to any name I want and it still works. Mysterious

EDIT:
more info here :D...

Appearently if I start a new game and THEN do it, it works like a charm. Some mysterious and unknown force is limiting this from happening in a *barely any variables* game.





EDIT 2:


If I start a new game from the Demo, it works.
if I start a new game from MY GAME, it doesn't work.

By start a new game, I mean click File - new.

Wha..Hu..Huh?...when....What/ O-o



EDIT 3:
Even more mystery on our hands folks. If I load my game up using the demo first, then clicking File Load, I can use getTime
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: stTime not working?

Postby Bee-Ant » Tue May 22, 2012 11:42 am

Can you post the code above the stTime?
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: stTime not working?

Postby Hblade » Tue May 22, 2012 4:11 pm

There was nothing above the stTime. For some reason it was very very weird, I even clicked File - New and had an empty un-named project without any actors in it what so ever, and then tried that 1 simple line of code (Copied and pasted from the demo) and it still didn't work. However when I went to the demo and clicked File - new and tried the exact same thing, it worked. O.o Either way, heres what I did:

I opened the demo, then clicked File - Load and loaded up my game project, then the stTime worked O.o
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: stTime not working?

Postby Bee-Ant » Tue May 22, 2012 8:30 pm

Seems like something is missing in your current ged. Maybe the demo is created with older version of GE?that's contains something?like "error freepass"?
And then once you open the demo, it applies the "freepass" to the system like "here my freepass, so let me through"... that's why you didn't face any error :P
And when you clicked New Game, it pass the "freepass" effect?
Well, shallow logic. I know :P
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: stTime not working?

Postby Hblade » Tue May 22, 2012 9:17 pm

It makes sense though :D But at first I was like "I can count to cookie?"
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest