Postado Junho 25, 2019 5 anos function getPlayerPoints (cid) local res = db.getResult('select `points` from players where name = \''..getPlayerAccount(cid)..'\'') if(res:getID() == 1) then return false end local ret = res:getDataInt("points") res:free() return tonumber (ret) end function doPlayerAddPoints(cid, count) return db.executeQuery("UPDATE `players` SET points = '"..getPlayerPoints(cid) + count .."' WHERE `name` ='"..getPlayerAccount(cid).."'") end Editado Junho 25, 2019 5 anos por movie (veja o histórico de edições) Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Postado Junho 25, 2019 5 anos Autor 8 minutos atrás, movie disse: function getPlayerPoints (cid) local res = db.getResult('select `points` from players where name = \''..getPlayerAccount(cid)..'\'') if(res:getID() == 1) then return false end local ret = res:getDataInt("points") res:free() return tonumber (ret) end function doPlayerAddPoints(cid, count) return db.executeQuery("UPDATE `players` SET points = '"..getPlayerPoints(cid) + count .."' WHERE `name` ='"..getPlayerAccount(cid).."'") end Nao Funciono Deu Erro [22:11:02.971] [Error - Action Interface] [22:11:02.978] data/actions/scripts/Peterson/pointscroll.lua:onUse [22:11:02.984] Description: [22:11:02.986] data/lib/004-database.lua:66: [Result:getDataInt] Result not set! [22:11:02.995] stack traceback: [22:11:03.001] [C]: in function 'error' [22:11:03.004] data/lib/004-database.lua:66: in function 'getDataInt' [22:11:03.010] data/lib/048-ppoints.lua:6: in function 'getPlayerPoints' [22:11:03.021] data/lib/048-ppoints.lua:12: in function 'doPlayerAddPoints' [22:11:03.027] data/actions/scripts/Peterson/pointscroll.lua:8: in function <da ta/actions/scripts/Peterson/pointscroll.lua:5>
Postado Junho 25, 2019 5 anos A sua tabela de points está na accounts ou players? Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Postado Junho 25, 2019 5 anos Autor 2 minutos atrás, movie disse: A sua tabela de points está na accounts ou players? Em players
Postado Junho 25, 2019 5 anos function getPlayerPoints (cid) local res = db.getResult('select `points` from players where name = \''..getCreatureName(cid)..'\'') if(res:getID() == 1) then return false end local ret = res:getDataInt("points") res:free() return tonumber (ret) end function doPlayerAddPoints(cid, count) return db.executeQuery("UPDATE `players` SET points = '"..getPlayerPoints(cid) + count .."' WHERE `name` ='"..getCreatureName(cid).."'") end Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.