hallabackkid101
New Member
Hello, Im having a problem with a script I have. I believe when a player kills another play its supposed to show the killer frags, but its not working. My engine gave me this error
, What do i need to do? I created a field under players named "frags". Any help is greatly appreciated
Also if I wanted to switch this to storage what would be the process? Change the scripts?
topfrags.lua
HTML:
OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such column: frags (UPDATE "players" SET "frags" = "frags" + 1 WHERE "id" = 32;)
Also if I wanted to switch this to storage what would be the process? Change the scripts?
topfrags.lua
PHP:
function onKill(cid, target, lastHit)
if isPlayer(target) then
db.executeQuery("UPDATE `players` SET `frags` = `frags` + 1 WHERE `id` = " .. getPlayerGUID(cid) .. ";")
end
return true
end