Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

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


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 03:41 AM.


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