View Single Post
  #1  
Old 10-30-2006, 12:35 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
More Missing Values

PHP Code:
function onCreated()
  {
  
temp.var = new TStaticVar();
  
temp.var."0";
  
temp.var.savevars"levels/...");
  
  
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 )
Reply With Quote