Okay so I have a method that uses tmysql.
tmysql.query("SELECT rank FROM test_accounts WHERE steamid='"..ply:SteamID().."'", function(res, status, error)
print(res[1]["rank"])
if(res[1]["rank"] == "1") then
--Sit Tight
Msg("Congrats your account exists?")
else
Msg("Account doesn't exist
")
test.NewAccount(ply)
end
when I set the conditional to ask for a 1, as an integer (without the quotes), it always would say account doesn’t exist…
So I tried it with quotes and it worked.
Any ideas why, and how I can fix this, because preferably they don’t come out as strings. Thanks :3