Problema Quest

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
nostra
Nivel 1

Nivel 1
Mesaje: 149
Membru din: 17 Mai 2017, 01:13
Aprecieri: 257  
Mulţumiri: 42  
Medalii

*Problemă: LUA_ERROR:
Tipologie server(PvM / PvP): -
*Resursă folosită: --
*ServerFiles utilizat:--
*Syserr:
SYSERR: Mar 2 17:57:06 :: RunState: LUA_ERROR: [string "emote_system"]:11: attempt to index field `?' (a nil value)
SYSERR: Mar 2 17:57:06 :: WriteRunningStateToSyserr: LUA_ERROR: quest emote_system.start click
*Quest:
quest emote_system begin
state start begin
when login begin
cmdchat("emote_system_index "..q.getcurrentquestindex())
if pc.getqf("emote_system_enabled") == 0 then
pc.setqf("emote_system_enabled",1)
local nume = string.format(pc.getname())
local emoticon = string.format("starting_emote.tga")
mysql_query("INSERT INTO player.emote_system(player, active_emote) VALUES('"..nume.."', '"..emoticon.."') ON DUPLICATE KEY UPDATE active_emote='"..emoticon.."';")
cmdchat("ActiveEmoticonState "..emoticon)
cmdchat("ActiveEmoticonStateForInterface "..emoticon)
elseif pc.getqf("emote_system_enabled") == 1 then
local nume = string.format(pc.getname())
local x = mysql_query("SELECT active_emote from player.emote_system WHERE player = '"..nume.."';")[1][1]
cmdchat("ActiveEmoticonState "..x)
cmdchat("ActiveEmoticonStateForInterface "..x)
end
end
when button or info begin
pc.setqf("emote_system_emoted_end",get_time())
local timemath = pc.getqf("emote_system_emoted_end")-pc.getqf("emote_system_emoted_start")
if timemath >= 10 then
local nume_2 = string.format(pc.getname())
local y = mysql_query("SELECT active_emote from player.emote_system WHERE player = '"..nume_2.."';")[1][1]
cmdchat("EmoteSystemThisOne "..y)
pc.setqf("emote_system_emoted_start",get_time())
else
local timetoemote = 10 - timemath
syschat("|cffffffff You can emote again in |cffff0000"..timetoemote.."|cffffffff seconds")
end
end
end
end
Aveti idee ce nu este in ordine, de imi da acea erroare?
▬ How long is forever? .. Sometimes, just one second. ▬
Afișează semnătura
Avatar utilizator
Braxy
Quest Creator

Quest Creator
Mesaje: 293
Membru din: 04 Mai 2016, 17:13
Regat: Jinno
Aprecieri: 7  
Mulţumiri: 228  
Medalii

Erroarea respectiva indica faptul ca este incercata utilizarea unei valori inexistente, problema provine din functiile de SELECT ale valorilor bazei de date, fie nu ai functia adaugata in questlib (mysql_query, astfel odata executata rezultatul e nil) fie argumentele date returneaza valoare nila, mai bine spus selecteaza din tabel valori inexistente.
Avatar utilizator
nostra
Nivel 1

Nivel 1
Mesaje: 149
Membru din: 17 Mai 2017, 01:13
Aprecieri: 257  
Mulţumiri: 42  
Medalii

iBraxy scrie:Erroarea respectiva indica faptul ca este incercata utilizarea unei valori inexistente, problema provine din functiile de SELECT ale valorilor bazei de date, fie nu ai functia adaugata in questlib (mysql_query, astfel odata executata rezultatul e nil) fie argumentele date returneaza valoare nila, mai bine spus selecteaza din tabel valori inexistente.
Mulțumesc de răspuns!
Am pus mysql_query in questlib. O sa mai verific odată, poate nu am pus unde trebuie. Am pus undeva pea sfârșit..

[ Postat de pe Android ] Imagine
▬ How long is forever? .. Sometimes, just one second. ▬
Afișează semnătura
Avatar utilizator
FRANCIS
Administrator Adjunct

Administrator Adjunct
Mesaje: 7879
Membru din: 06 Noi 2015, 19:52
Regat: Chunjo
Aprecieri: 334  
Mulţumiri: 54528  
Discord: Copiază ID
Medalii

Topic inactiv . Arhivat !
If you talk to a man in a language he understands, that goes to his head. If you talk to him in his own language, that goes to his heart.
Imagine
ENJOY
Imagine
Afișează semnătura
Închis
Răspunsuri
6
Vizualizări
400
Răspunsuri
4
Vizualizări
219
Răspunsuri
4
Vizualizări
409
Răspunsuri
3
Vizualizări
735

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 83 vizitatori