I was scripting and i came across a bug, after alot of testing i found out that one of the following two functions doesnt work right, please help.
--N from Stack
local function NfromS(List, n)
for N, Y in ipairs(List) do
if N == n then
return Y
end
end
end
--String to number
local function NUMBER(O)
local tmp = 0
repeat
if O == string.lower(tmp) then
return tmp
end
tmp += 1
until string.len(O) < string.len(tmp)
return 0
end
black magic for me, im not that good at programming that i know how to use things like this so good.
anyways im gonna try these out and mark them as a solution if it works!