Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.