Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Hemdall
Wanderer


Joined: 30 Nov 2006
Posts: 50

PostPosted: Fri Oct 30, 2009 12:07 pm   

Problem in Lua with setting value of a zScript variable.
 
Lets say I got function test(arg,arg1) and i call it with test(zs.var.m_leader,"zs.var.n_leader") I do some operations on zs.var.m_leader and got in result table t. Now I would like to assing this table to value of arg1 (not arg1) but i don't how to do that.
I've tried to do something like:
arg1 = table.concat(t," ") but in result value of arg1 has changed from zs.var.n_leader to arrays from table t.
Thanks in advance for any help.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net