slaw
Software Developer
Hey.
I want take from database some number, to be it was INTEGER, not STRING. When i try take something its always STRING, and i cant make (if numberfromDB >= 30 then) becouse it always shows "attempt to compare number with string"!
Some part of script:
I want take from database some number, to be it was INTEGER, not STRING. When i try take something its always STRING, and i cant make (if numberfromDB >= 30 then) becouse it always shows "attempt to compare number with string"!
Some part of script:
Code:
cur = assert(con:execute("SELECT `account_id` FROM `players` WHERE `id` = "..getPlayerGUID(cid)..";"))
row = cur:fetch({}, "a")
curr = assert(con:execute("SELECT `type` FROM `accounts` WHERE `id` = "..row.account_id..";"))
roww = curr:tuple({}, "a")
if roww.type >= 4 then
Last edited by a moderator: