incrementing global variables...

Started by Squinky, Fri 04/07/2003 06:39:51

Previous topic - Next topic

Squinky

I can't remember how to do this, but I want to just add a ++ to my global variable, not set it....

Anybody wanna drop me a line on this one, because sadly I've forgotten...

Gilbert

If you're using a global variable, just do something like:

blah++;
or
blah=blah+1;

But if you're talking about global INT (which I think IS the case ;D ), just use:

SetGlobalInt(3, GetGlobalInt(3)+1);


Squinky


SMF spam blocked by CleanTalk