antiblock
https://arwen2.global/
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
corinthiano

[Dúvida] Error na quest

Question

 

Boa noite, estou com um erro na quest... Acho que é no laço, porém não estou conseguindo arrumar.

 

quest gm_list begin
    state start begin
        when login begin
            local gms = {
                {"[DEV]Staff"}
                {"[GM]Staff01"}
                {"[GM]Staff02"}
                {"[GM]Staff03"}
            }
            for i=1, table.getn(gms), 1 do
                local name = gms[1]
                if name == nil then
                    return name
                end
                cmdchat('SetTeamOffline '..name)
            end
            loop_timer("check_gm", 10)
        end
        when check_gm.timer begin
            local t_gms = {
                {"[DEV]Staff"}
                {"[GM]Staff01"}
                {"[GM]Staff02"}
                {"[GM]Staff03"}
            }
            for i=1, table.getn(t_gms), 1 do
                local t_name = t_gms[1]
                if t_name == nil then
                    return t_name
                end
                if game.get_event_flag(t_name) == 1 then
                    cmdchat('SetTeamOnline '..t_name)
                else
                    cmdchat('SetTeamOffline '..t_name)
                end
            end
        end
        when login with pc.is_gm() begin
            local name = pc.get_name()
            game.set_event_flag(name, 1)
        end
        when logout with pc.is_gm() begin
            local name = pc.get_name()
            game.set_event_flag(name, 0)
        end
    end
end

 

Alguém sabe onde está o erro ? +1

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Primeiro- Organiza essa quest, quando o fizeres tento ajudar-te a resolver isso.

Segundo- Se não explicas qual o erro, é um bocado complicado ajudar.

Share this post


Link to post
Share on other sites
antiblock
https://arwen2.global/

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this