setglobalint in global script [SOLVED]

Started by homelightgames, Wed 01/11/2006 22:44:55

Previous topic - Next topic

homelightgames

I have a question concerning set global int:

I want to set a global variable (setglobalint) when the game starts, yet putting "setglobalint" in the global script returns a Parse error (Parse  Error: unexpected 'SetGlobalInt')

Global Script:
// main global script file

SetGlobalInt(2,1);

#sectionstart game_start...

Where do you put "setglobalints" to define them at the start of the game?  Is there some syntax I'm forgetting?

thanks

visionmind

Alynn

put it in your game_start function, the reason it's not working now is that it's outside of a function.

homelightgames

That was obvious.  Sheesh.

Thanks for your help Alynn.

visionmind

SMF spam blocked by CleanTalk