Thread
:
Variables problem
View Single Post
09-03-10, 05:54 AM
#
1
dr_AllCOM3
A Cyclonian
Join Date: Nov 2006
Posts: 40
Variables problem
Code:
local a = {} a[1] = 1 a[2] = 2
Goal:
Code:
a[1] = 2 a[2] = 1
I want those two to switch their values, but it seems like I always end up with references and both having the same value.
What is the correct way to do it?
Thanks
dr_AllCOM3
View Public Profile
Send a private message to dr_AllCOM3
Find More Posts by dr_AllCOM3