• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

tables

Solution
because in table they are strings... "2" < this is string... and you compare with number...

so either you do this:
LUA:
table = {"2", "2"} 
if tonumber(table[1]) == 2 then 
    say(cid, table[1]) 
end

or simply:
LUA:
table = {2, 2} 
if table[1] == 2 then 
    say(cid, table[1]) 
end
because in table they are strings... "2" < this is string... and you compare with number...

so either you do this:
LUA:
table = {"2", "2"} 
if tonumber(table[1]) == 2 then 
    say(cid, table[1]) 
end

or simply:
LUA:
table = {2, 2} 
if table[1] == 2 then 
    say(cid, table[1]) 
end
 
Solution
Back
Top