View Single Post
  #3  
Old 10-30-2006, 02:21 AM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Quote:
Originally Posted by Skyld View Post
Will temp.newvar.t not == 0 anyway, since it is an "uncreated" variable?
Yes, however, there is a difference when I want... Well, put it in context.

I want to make a system in which options are set.

PHP Code:
setting.hasStaffBoots=true 
However, if I want to remove it, I want to apply another file to an account...

PHP Code:
setting.hasStaffBoots=false 
The way to know on such ambiguous terms is through

PHP Code:
for ( itemp.var.setting.getdynamicvarnames() )
  
player.setting.(@ ) = temp.var.setting.(@ ); 
Because the variable is equal to false, it vanishes completely!
By cause, however, when I do the getdynamicvarnames(), it doesn't interpret the hasStaffBoots=false, and therefore, it doesn't set it to player.setting.(@ i )... Thereby, the old value remains true: the player.setting.(@ i ) doesn't get changed because the hasStaffBoots isn't part of the variable anymore.

Ultimately, there IS a difference, even though the shorthand of setting.hasStaffBoots is still equal to 0.
Reply With Quote