RicardoMoreira 4 Posted October 14, 2013 quest baniringame begin state start begin when 71122.use whith pc.is_gm() begin say("Que desejas fazer?") local s = select('Banir','Desbanir',"Fechar") if s == 3 then return end local ban,bantxt,bantxt2 = "BLOCK","Banir","Banir" if s == 2 then ban,bantxt,bantxt2 = "OK","Desbanir","Desbanido" end say(col.blue('spieler '..bantxt)); say('[ENTER]Digita o nome do jogador.[ENTER](Ou digita só uma parte do nome)')) local inp = input(); inp = mysql_escape(inp) if inp == "" or inp == pc.guet_name() then say(col.red('Nome Inválido![ENTER]Crasj!')) return end local q = mysql_query('select' * from player.player WHERE name LIKE "%'..inp..'%" AND name NOT like "%[%"') if q == "ERROR" then say(col.red('Erro na leitura dos dados, ou então não existe personagem com esse nome.')) return end say('O usuario que deseja '..bantxt2..' deve ser:') local wahl = q.name; table.insert(wahl,"Cancelar") table.insert(wahl,1,6) -- 6 ist die Anzahl der Maximalen User auf einer Seite. local auswahl = select2(wahl) if wahl[auswahl] == "Cancelar" then return end say('O jogador "'..q.name[auswahl]..'" é para '..bantxt..'?') if select("Sim","Não") == 2 then return end mysql_query('UPDATE account.account SET status = "'..ban..'" WHERE id = '..q.account_id[auswahl]..' LIMIT 1') say('Executas-te a ação no jogador!') end end end Erro: QUEST : baniringame STATE : start WHEN : 71122.use when doesn´t have begin-end clause. (whith) baniringame.quest:3Abort (core dumped) Share this post Link to post Share on other sites
0 Papix 452 Posted October 14, 2013 quest baniringame begin state start begin when 71122.use whith pc.is_gm() begin say("Que desejas fazer?") local s = select('Banir','Desbanir',"Fechar") if s == 3 then return end local ban,bantxt,bantxt2 = "BLOCK","Banir","Banir" if s == 2 then ban,bantxt,bantxt2 = "OK","Desbanir","Desbanido" end say(col.blue('spieler '..bantxt)); say('[ENTER]Digita o nome do jogador.[ENTER](Ou digita só uma parte do nome)')) local inp = input(); inp = mysql_escape(inp) if inp == "" or inp == pc.guet_name() then say(col.red('Nome Inválido![ENTER]Crasj!')) return end local q = mysql_query('select' * from player.player WHERE name LIKE "%'..inp..'%" AND name NOT like "%[%"') if q == "ERROR" then say(col.red('Erro na leitura dos dados, ou então não existe personagem com esse nome.')) return end say('O usuario que deseja '..bantxt2..' deve ser:') local wahl = q.name; table.insert(wahl,"Cancelar") table.insert(wahl,1,6) -- 6 ist die Anzahl der Maximalen User auf einer Seite. local auswahl = select2(wahl) if wahl[auswahl] == "Cancelar" then return end say('O jogador "'..q.name[auswahl]..'" é para '..bantxt..'?') if select("Sim","Não") == 2 then return end mysql_query('UPDATE account.account SET status = "'..ban..'" WHERE id = '..q.account_id[auswahl]..' LIMIT 1') say('Executas-te a ação no jogador!') end end end 1 RicardoMoreira reacted to this Share this post Link to post Share on other sites
0 p0w3r0ff 3,810 Posted October 14, 2013 Tenta esta. Cumprimentos -- GM Item to ban -- www.Deathju2official.com -- Copyright Katamoto quest ban_item begin state start begin when 70022.use begin say_title ("Hello, ".. pc.get_name() ..".") say("(SA)Katamoto: Ban or unban a player") say("") say("Please Think wisely") local a = select ( "Ban Player" , "Unban player" , "Exit" ) if a == 1 then say("Name of player who you wanna ban") say("") say("Info : Abusing GM power and you will be removed") local cblock = input() say("Reason:") local creason = input() game.set_event_flag("banned_".. cblock ..(),1") notice_all("Player: ".. cblock .." is banned. reason: ".. creason.."") notice_all("<ATTENTION>Play by the rules!!") end if a == 2 then say("Insert name of player who will be unbanned") local cublock = input() game.set_event_flag("banned_".. culock ..(),0") notice_all("Ban for player: ".. cublock .." was removed") end if a == 3 then return end end end end 1 RicardoMoreira reacted to this Share this post Link to post Share on other sites
Erro:
QUEST : baniringame
STATE : start
WHEN : 71122.use
when doesn´t have begin-end clause. (whith)
baniringame.quest:3Abort (core dumped)
Share this post
Link to post
Share on other sites