Quote:
Originally Posted by SchlumPF*
anyway, "static s_szClassName[32] -> newszClassName[32]". you should not use a static there cuz it will still exist after FM_Spawn is run.
|
It doesn't matter, he gets the classname and sets it in szClassName so every time FM_Spawn is called the value is changed, not saved.
If you want it to be constant, you can do this:
PHP Code:
static var;
if (!var)
var = 8; // Set it for the first time.
Unless you mean that he unregisters FM_Spawn and the var will still exist?
__________________