[PROBLEMA]Segmentation Fault (core dumped)

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
dwicked
Nivel 1

Nivel 1
Mesaje: 141
Membru din: 10 Ian 2017, 19:01
Server: -
Regat: Jinno
Aprecieri: 12  
Mulţumiri: 3  
 Contact:
Medalii

Salut
Folosesc serverfile Metin2Hope v3
Cand dau in terminal ./qc admin_panel.quest imi vine
Segmentation Fault (core dumped)
--
Aveti aici si quest-ul daca va ajuta:
quest admin_panel begin
state start begin
when letter with pc.is_gm() begin
send_letter("GM: Panou de administrare")
end
when button or info begin
say_gm_title("Panou de administrare")
say_gm("")
say_gm("Selectează o opţiune din meniul de de mai jos.")
say_gm("")

local s = select("Activează ratele","Teleportare","Blochează/Deblochează şoapta","Ieşire")

if s == 1 then

say_gm_title("Panou de administrare")
say("")
say_gm_title("Panou de administrare")
say("")
say_gm("Ce rată doreşti să modifici?")
say("")

local r = select("Yang","Experienţă ","Drop","Toate","Renunţă ")

if r == 1 then
say_gm_title("Panou de administrare")
say("")
say_gm("Ce rată doreşti să pui la Yang?")

local rate1 = input()
command ( "priv 0 2 "..rate1.." 200" )

elseif r == 2 then
say_gm_title("Panou de administrare")
say("")
say_gm("Ce rată doreşti să pui la Experienţă?")

local rate2 = input()
command ( "priv 0 4 "..rate2.." 200" )

elseif r == 3 then
say_gm_title("Panou de administrare")
say("")
say_gm("Ce rată doreşti să pui la Drop?")

local rate3 = input()
command ( "priv 0 1 "..rate3.." 200" )

elseif r == 4 then
say_gm_title("Panou de administrare")
say("")
say_gm("Ce rate doreşti să pui?")

local rate4 = input()

command ( "priv 0 1 "..rate4.." 200" )
command ( "priv 0 2 "..rate4.." 200" )
command ( "priv 0 4 "..rate4.." 200" )

elseif r == 5 then
send_letter("GM: Panou de administrare")
return
end
end

elseif s == 2 then
say_gm_title("Panou de administrare")
say("")
say_gm("Unde vrei să te teleportezi?")
say_gm("")

local teleport = select( "V3 (Început)", "V3 (Sfârşit)", "V4 (Început)", "V4 (Sfârşit)", "Pagina următoare", "Ieşire" )

if teleport == 1 then
pc.warp(900 , 1207800)

elseif teleport == 2 then
pc.warp(135500, 1343600)

elseif teleport == 3 then
pc.warp(153600, 1203200)

elseif teleport == 4 then
pc.warp(181500, 1220500)

elseif teleport == 5 then
say_gm_title("Panou de administrare")
say("")
say_gm ( "Unde vrei să te teleportezi?" )
say_gm ( "" )

local teleport2 = select("Cape Dragon Fire","Nephrite Bay","Thunder Mountains","Guatama Cliff","Ieşire")

if teleport2 == 1 then
pc.warp( 1104600, 1788300)

elseif teleport2 == 2 then
pc.warp ( 1087000, 1656300 )

elseif teleport2 == 3 then
pc.warp ( 1134300, 1654900 )

elseif teleport2 == 4 then
pc.warp ( 1226400, 1680900 )

elseif teleport2 == 5 then
send_letter("GM: Panou de administrare")
return
end
end

elseif s == 3 then
say_gm_title("Panou de administrare")
say("")

local s1 = select("Blochează şoapta", "Deblochează şoapta", "Renunţă ")

if s1 == 1 then
say_gm_title("Panou de administrare")
say("")
say_gm("Introdu numele exact al jucătorului")
say_gm("căruia vrei să-i blochezi şoapta.")
say_gm("")

local name = input()

say_gm_title("Panou de administrare")
say("")
say_gm("Câte minute doreşti să-i blochezi")
say_gm("şoapta jucătorului "..name.."?")
say_gm("")

local time = input()
local min = math.floor(time) * 60

say_gm_title("Panou de administrare")
say("")
say_gm("Motivul pentru care doreşti să-i blochezi")
say_gm("şoapta jucătorului "..name.."?")
say_gm("")

local reason = input()
local block = select("Blochează şoapta "..name.."" ,"Renunţă ")

if block == 1 then
command("block_chat "..name.." "..min)
command("n Jucătorului "..name.." i-a fost blocată şoapta de către "..pc.get_name().." timp de "..time.." minute.")
command("n Motiv: "..reason)
end

elseif s1 == 2 then
say_gm_title("Panou de administrare")
say("")
say_gm("Introdu numele exact al jucătorului")
say_gm("căruia vrei să-i deblochezi şoapta.")
say_gm("")

local unblock = input()

command("block_chat "..unblock.." 3")
command("n Jucătorului "..unblock.." i-a fost deblocată şoapta de către "..pc.get_name()..".")
end
end
end
end
end
end
Afișează semnătura
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

dwicked scrie:Salut
Folosesc serverfile Metin2Hope v3
Cand dau in terminal ./qc admin_panel.quest imi vine
Segmentation Fault (core dumped)
--
Aveti aici si quest-ul daca va ajuta:
quest admin_panel begin
state start begin
when letter with pc.is_gm() begin
send_letter("GM: Panou de administrare")
end
when button or info begin
say_gm_title("Panou de administrare")
say_gm("")
say_gm("Selectează o opţiune din meniul de de mai jos.")
say_gm("")

local s = select("Activează ratele","Teleportare","Blochează/Deblochează şoapta","Ieşire")

if s == 1 then

say_gm_title("Panou de administrare")
say("")
say_gm_title("Panou de administrare")
say("")
say_gm("Ce rată doreşti să modifici?")
say("")

local r = select("Yang","Experienţă ","Drop","Toate","Renunţă ")

if r == 1 then
say_gm_title("Panou de administrare")
say("")
say_gm("Ce rată doreşti să pui la Yang?")

local rate1 = input()
command ( "priv 0 2 "..rate1.." 200" )

elseif r == 2 then
say_gm_title("Panou de administrare")
say("")
say_gm("Ce rată doreşti să pui la Experienţă?")

local rate2 = input()
command ( "priv 0 4 "..rate2.." 200" )

elseif r == 3 then
say_gm_title("Panou de administrare")
say("")
say_gm("Ce rată doreşti să pui la Drop?")

local rate3 = input()
command ( "priv 0 1 "..rate3.." 200" )

elseif r == 4 then
say_gm_title("Panou de administrare")
say("")
say_gm("Ce rate doreşti să pui?")

local rate4 = input()

command ( "priv 0 1 "..rate4.." 200" )
command ( "priv 0 2 "..rate4.." 200" )
command ( "priv 0 4 "..rate4.." 200" )

elseif r == 5 then
send_letter("GM: Panou de administrare")
return
end
end

elseif s == 2 then
say_gm_title("Panou de administrare")
say("")
say_gm("Unde vrei să te teleportezi?")
say_gm("")

local teleport = select( "V3 (Început)", "V3 (Sfârşit)", "V4 (Început)", "V4 (Sfârşit)", "Pagina următoare", "Ieşire" )

if teleport == 1 then
pc.warp(900 , 1207800)

elseif teleport == 2 then
pc.warp(135500, 1343600)

elseif teleport == 3 then
pc.warp(153600, 1203200)

elseif teleport == 4 then
pc.warp(181500, 1220500)

elseif teleport == 5 then
say_gm_title("Panou de administrare")
say("")
say_gm ( "Unde vrei să te teleportezi?" )
say_gm ( "" )

local teleport2 = select("Cape Dragon Fire","Nephrite Bay","Thunder Mountains","Guatama Cliff","Ieşire")

if teleport2 == 1 then
pc.warp( 1104600, 1788300)

elseif teleport2 == 2 then
pc.warp ( 1087000, 1656300 )

elseif teleport2 == 3 then
pc.warp ( 1134300, 1654900 )

elseif teleport2 == 4 then
pc.warp ( 1226400, 1680900 )

elseif teleport2 == 5 then
send_letter("GM: Panou de administrare")
return
end
end

elseif s == 3 then
say_gm_title("Panou de administrare")
say("")

local s1 = select("Blochează şoapta", "Deblochează şoapta", "Renunţă ")

if s1 == 1 then
say_gm_title("Panou de administrare")
say("")
say_gm("Introdu numele exact al jucătorului")
say_gm("căruia vrei să-i blochezi şoapta.")
say_gm("")

local name = input()

say_gm_title("Panou de administrare")
say("")
say_gm("Câte minute doreşti să-i blochezi")
say_gm("şoapta jucătorului "..name.."?")
say_gm("")

local time = input()
local min = math.floor(time) * 60

say_gm_title("Panou de administrare")
say("")
say_gm("Motivul pentru care doreşti să-i blochezi")
say_gm("şoapta jucătorului "..name.."?")
say_gm("")

local reason = input()
local block = select("Blochează şoapta "..name.."" ,"Renunţă ")

if block == 1 then
command("block_chat "..name.." "..min)
command("n Jucătorului "..name.." i-a fost blocată şoapta de către "..pc.get_name().." timp de "..time.." minute.")
command("n Motiv: "..reason)
end

elseif s1 == 2 then
say_gm_title("Panou de administrare")
say("")
say_gm("Introdu numele exact al jucătorului")
say_gm("căruia vrei să-i deblochezi şoapta.")
say_gm("")

local unblock = input()

command("block_chat "..unblock.." 3")
command("n Jucătorului "..unblock.." i-a fost deblocată şoapta de către "..pc.get_name()..".")
end
end
end
end
end
end
Poftim:

Cod: Selectaţi tot

quest admin_panel begin
	state start begin
		when letter with pc.is_gm() begin
			send_letter("GM: Panou de administrare")
		end
		when button or info begin
			say_gm_title("Panou de administrare")
			say_gm("")
			say_gm("Selectează o opţiune din meniul de de mai jos.")
			say_gm("")

		local s = select("Activează ratele","Teleportare","Blochează/Deblochează şoapta","Ieşire")

			if s == 1 then

			say_gm_title("Panou de administrare")
			say("")
			say_gm_title("Panou de administrare")
			say("")
			say_gm("Ce rată doreşti să modifici?")
			say("")

			local r = select("Yang","Experienţă ","Drop","Toate","Renunţă ")

				if r == 1 then
				say_gm_title("Panou de administrare")
				say("")
				say_gm("Ce rată doreşti să pui la Yang?")

					local rate1 = input()
					command ( "priv 0 2 "..rate1.." 200" )

				elseif r == 2 then
					say_gm_title("Panou de administrare")
					say("")
					say_gm("Ce rată doreşti să pui la Experienţă?")

					local rate2 = input()
					command ( "priv 0 4 "..rate2.." 200" )

				elseif r == 3 then
					say_gm_title("Panou de administrare")
					say("")
					say_gm("Ce rată doreşti să pui la Drop?")

					local rate3 = input()
					command ( "priv 0 1 "..rate3.." 200" )

				elseif r == 4 then
					say_gm_title("Panou de administrare")
					say("")
					say_gm("Ce rate doreşti să pui?")

					local rate4 = input()

					command ( "priv 0 1 "..rate4.." 200" )
					command ( "priv 0 2 "..rate4.." 200" )
					command ( "priv 0 4 "..rate4.." 200" )

				elseif r == 5 then
					send_letter("GM: Panou de administrare")
					return
				end

			elseif s == 2 then
				say_gm_title("Panou de administrare")
				say("")
				say_gm("Unde vrei să te teleportezi?")
				say_gm("")

			local teleport = select( "V3 (Început)", "V3 (Sfârşit)", "V4 (Început)", "V4 (Sfârşit)", "Pagina următoare", "Ieşire" )

				if teleport == 1 then
				pc.warp(900 , 1207800)
				
				elseif teleport == 2 then
				pc.warp(135500, 1343600)
				
				elseif teleport == 3 then
				pc.warp(153600, 1203200)
				
				elseif teleport == 4 then
				pc.warp(181500, 1220500)
				
				elseif teleport == 5 then
				say_gm_title("Panou de administrare")
				say("")
				say_gm ( "Unde vrei să te teleportezi?" )
				say_gm ( "" )
				
				local teleport2 = select("Cape Dragon Fire","Nephrite Bay","Thunder Mountains","Guatama Cliff","Ieşire")
				
				if teleport2 == 1 then
				pc.warp( 1104600, 1788300)
				
				elseif teleport2 == 2 then
				pc.warp ( 1087000, 1656300 )
				
				elseif teleport2 == 3 then
				pc.warp ( 1134300, 1654900 )
				
				elseif teleport2 == 4 then
				pc.warp ( 1226400, 1680900 )
				
				elseif teleport2 == 5 then
				send_letter("GM: Panou de administrare")
				return
				end

			elseif s == 3 then
				say_gm_title("Panou de administrare")
				say("")

			local s1 = select("Blochează şoapta", "Deblochează şoapta", "Renunţă ")

				if s1 == 1 then
					say_gm_title("Panou de administrare")
					say("")
					say_gm("Introdu numele exact al jucătorului")
					say_gm("căruia vrei să-i blochezi şoapta.")
					say_gm("")
					
					local name = input()
					
					say_gm_title("Panou de administrare")
					say("")
					say_gm("Câte minute doreşti să-i blochezi")
					say_gm("şoapta jucătorului "..name.."?")
					say_gm("")
					
					local time = input()
					local min = math.floor(time) * 60
					
					say_gm_title("Panou de administrare")
					say("")
					say_gm("Motivul pentru care doreşti să-i blochezi")
					say_gm("şoapta jucătorului "..name.."?")
					say_gm("")
					
					local reason = input()
					local block = select("Blochează şoapta "..name.."" ,"Renunţă ")

					if block == 1 then
					command("block_chat "..name.." "..min)
					command("n Jucătorului "..name.." i-a fost blocată şoapta de către "..pc.get_name().." timp de "..time.." minute.")
					command("n Motiv: "..reason)
					end

				elseif s1 == 2 then
					say_gm_title("Panou de administrare")
					say("")
					say_gm("Introdu numele exact al jucătorului")
					say_gm("căruia vrei să-i deblochezi şoapta.")
					say_gm("")
					
					local unblock = input()
					
					command("block_chat "..unblock.." 3")
					command("n Jucătorului "..unblock.." i-a fost deblocată şoapta de către "..pc.get_name()..".")
					end
				end
			end
		end
	end
end
Pentru acest mesaj, [RaffaeL] for the post:
dwicked
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
dwicked
Nivel 1

Nivel 1
Mesaje: 141
Membru din: 10 Ian 2017, 19:01
Server: -
Regat: Jinno
Aprecieri: 12  
Mulţumiri: 3  
 Contact:
Medalii

Mersi, ai +1, cer T/C
Afișează semnătura
Închis

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

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