Jump to content

Recommended Posts

Hello everyone!

I have this error when i open the system in game.. what should i do?

*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

 

Link to comment
Share on other sites

  • 1 year later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.