int StartingConditional()
{
return (GetLocalInt(GetModule(), "beastalive"));
}Do you see why that is?
int StartingConditional()
{
return (GetLocalInt(GetModule(), "beastalive"));
}
int x; x = 5; return x;
Modifié par MagicalMaster, 05 novembre 2013 - 05:53 .
Groove Widdit wrote...
There are boolean operators in C that evaluate to true or false like == or <.
MagicalMaster wrote...
The default for a local variable is 0. I admit I'm not sure if there's a difference between deleting and setting it to 0 in the fine details but from your perspective in this case they are the same.
FunkySwerve wrote...
There is a difference, yes. Deleting them clears them from memory. Having vars set to 0 uses memory. Easy to see if you store a bunch of variables on an item in the toolset - it also increases file size, whether set to 0 (or "") or something else.