19 posts
Posted 06 March 2014 - 06:18 PM
Hello again. Today i've been working alot for a new script i plan to upload later. But i stumbled upon a FATAL issue. I need to transfer the data from one variable to another, and then erase the first one for REASONS. But i cant…. I'm having this code (yep i still cant use the "code" function in these forums) : i=5 (next line) n=0 (next line) i=n (next line) i=0 .The problem is when i try to use "n", it is still a nil value… Any ideas? Tried with n=return(i), not very successful…
Thanks for any replies
8543 posts
Posted 06 March 2014 - 06:27 PM
Please post your code.
1281 posts
Posted 06 March 2014 - 06:28 PM
Just to clarify, 0 and nil is not the same.
To copy i to n you would do
n = i, not i = n.
19 posts
Posted 06 March 2014 - 06:36 PM
Just to clarify, 0 and nil is not the same.
To copy i to n you would do
n = i, not i = n.
thanks! It worked! YAY
Please post your code.
the code is 1200+ lines and is very confusing to be posted.. and my problem is fixed now…
226 posts
Location
Earth
Posted 06 March 2014 - 10:22 PM
Just to clarify, 0 and nil is not the same.
To copy i to n you would do
n = i, not i = n.
thanks! It worked! YAY
Please post your code.
the code is 1200+ lines and is very confusing to be posted.. and my problem is fixed now…
then only post the part in question lol
7508 posts
Location
Australia
Posted 06 March 2014 - 11:07 PM
yep i still cant use the "code" function in these forums
you can use the "code function" by typing the [
code][
/code] tags manually.
19 posts
Posted 07 March 2014 - 11:28 AM
yep i still cant use the "code" function in these forums
you can use the "code function" by typing the [
code][
/code] tags manually.
while true do
randomFunction()
if amIDoingThisRight==true then
print("TheCode")
end
end
Edited on 07 March 2014 - 10:28 AM