Doyle3694, on 18 October 2012 - 12:23 PM, said:
Topic title : Expected number.
Error @ line 10 : until a == x
It must be passing x as a string and not a number.
I had this issue a few days ago.
Edit: It IS passing x as a string. I just made a test file with the following.
args = {...}
if args[1] == true then
print("True")
elseif args[1] == false then
print("False")
elseif args[1] == 1 then
print("One")
elseif tonumber(args[1]) == 2 then
print("Two")
else
print("Invalid")
end
Go on, run it. Everything you type will return invalid unless you type 2.
Edited by JoshhT, 18 October 2012 - 12:39 PM.