View Single Post
  #1  
Old 05-04-2014, 09:08 PM
JohnnyChimpo JohnnyChimpo is offline
Registered User
JohnnyChimpo's Avatar
Join Date: Jun 2004
Posts: 105
JohnnyChimpo is on a distinguished road
BUG? float var within TStaticVar obj

I have been playing around with TStaticVar objects and one thing i noticed was assigning a float to a variable and trying to echo the var makes the NPC server crash.

NPC Code:
 
obj = new TStaticVar("obj");
obj.name1 = "steve";
obj.number = 123;
obj.float1 = 1.23;
echo( obj.float1 );


NPC Code:
 
obj = new TStaticVar("obj");
obj.name1 = "steve";
obj.number = 123;
obj.numarray = {1,2,3};



Also assigning arrays to the object makes the NPC server crash.
Reply With Quote