PHP Code:
function onCreated()
{
temp.var = new TStaticVar();
temp.var.t = "0";
temp.var.savevars( "levels/...", 0 );
temp.newvar = loadvars( "levels/..." );
echo( temp.newvar.getvarnames() );
}
PHP Code:
initialized,joinedclasses,name,scriptlogmissingfunctions,timeout
Where did my Variable 't' go?!
It seems as though the string "0" becomes the integar 0 in the process, and when loaded, it is set to false, removing the variable completely.
Couldn't we claim that considering that it was saved in the savevar that it has no choice but to be a string? ( due to the fact that if it was not a string, it wouldn't have been saved in the first place )