jonathan.dsa
New Member
- Joined
- Nov 17, 2011
- Messages
- 61
- Reaction score
- 0
Hello, i have made a script for find in a table if this guild already registred or not, but return that error: '[Result:getDataString] Result not set!', where is the problem on my script? :
- - - Updated - - -
the error is on that line:
- - - Updated - - -
how work if empty result?
Lua:
guild = getPlayerGuildId(cid)
chck = db.getResult("SELECT `guild_id` FROM `rookwar.guild` WHERE `guild_id` = '"..guild.."' LIMIT 1;")
if (chck:getID() ~= -1) then
chcar = check:getDataString('guild_id')
chck:free()
end
if guild ~= chcar then
db.executeQuery("INSERT INTO `rookwar` (`player`) VALUES ('" ..nome.. "');")
end
- - - Updated - - -
the error is on that line:
Lua:
chcar = check:getDataString('guild_id')
- - - Updated - - -
how work if empty result?
Last edited: