LeyendasMt2 Posted February 22, 2013 Report Share Posted February 22, 2013 hola a todos , he intentado meter una quest a mi server y al cargarla me tira el siguiente error qc in malloc() error allocation failed abort (core dumped) Dejo la quest : quest koep begin state start begin when login begin if global.getvarchar("rank1") == pc.get_name then chat("You're first in kill other empire player's ranklist") elseif global.getvarchar("rank2") == pc.get_name then chat("You're second in kill other empire player's ranklist") elseif global.getvarchar("rank3") == pc.get_name then chat("You're third in kill other empire player's ranklist") end end when kill with npc.is_pc() begin if npc.empire != pc.empire then pc.setqf("yourkills", pc.getqf("yourkills")+1) if pc.getqf("yourkills")>game.get_event_flag("rank1lvl") then if global_getvarchar("rank1") != "" then global_setvarchar("rank3", global_getvarchar("rank2")) game.set_event_flag("rank3", game.get_event_flag("rank2")) game.set_event_flag("rank3empire", game.get_event_flag("rank2empire") global_setvarchar("rank2", global_getvarchar("rank1")) game.set_event_flag("rank2", game.get_event_flag("rank1")) game.set_event_flag("rank2empire", game.get_event_flag("rank1empire") notice_all(pc.get_name()..">>>"..global_getvarchar("rank1").."") end game.set_event_flag("rank1lvl", pc.getqf("yourkills")) global_setvarchar("rank1",pc.get_name()) game.set_event_flag("rank1empire", pc.get_empire()) elseif npc.empire != pc.empire then pc.setqf("yourkills", pc.getqf("yourkills")+1) if pc.getqf("yourkills")>game.get_event_flag("rank2lvl") then if global_getvarchar("rank2") != "" then global_setvarchar("rank3", global_getvarchar("rank2")) game.set_event_flag("rank3", game.get_event_flag("rank2")) game.set_event_flag("rank3empire", game.get_event_flag("rank2empire") notice_all(pc.get_name()..">>>"..global_getvarchar("rank2").."") end game.set_event_flag("rank2lvl", pc.getqf("yourkills")) global_setvarchar("rank2",pc.get_name()) game.set_event_flag("rank2empire", pc.get_empire()) elseif npc.empire != pc.empire then pc.setqf("yourkills", pc.getqf("yourkills")+1) if pc.getqf("yourkills")>game.get_event_flag("rank3lvl") then if global_getvarchar("rank3") != "" then game.set_event_flag("rank3lvl", pc.getqf("yourkills")) global_setvarchar("rank3",pc.get_name()) game.set_event_flag("rank3empire", pc.get_empire()) notice_all(pc.get_name()..">>>"..global_getvarchar("rank3").."") end game.set_event_flag("rank3lvl", pc.getqf("yourkills")) global_setvarchar("rank3",pc.get_name()) game.set_event_flag("rank3empire", pc.get_empire()) end end when 20354.chat."Other Empire Kill Player Rank" begin say_title("Ranking List:") say("Its 2000000 gold!") say("Do you want see it ?") local select = select("Yes","No") if select == 1 then local gold = 2000000 pc.changegold(-gold) say("Rank : "..global.getvarchar("rank1").." Level : "..game.set_event_flag("rank1lvl").." Empire : "..game.set_event_flag("rank1empire").."") say("Rank : "..global.getvarchar("rank2").." Level : "..game.set_event_flag("rank2lvl").." Empire : "..game.set_event_flag("rank2empire").."") say("Rank : "..global.getvarchar("rank3").." Level : "..game.set_event_flag("rank3lvl").." Empire : "..game.set_event_flag("rank3empire").."") wait() if global.getvarchar("rank1") == pc.get_name() then say("Congratulations") say("You are first killer!") elseif global.getvarchar("rank2") == pc.get_name() then say("You are second killer,good job!") say("Take courage..!") elseif global.getvarchar("rank3") == pc.get_name() then say("You are third killer, have a long way to first grade!") say("You must not discourage!Good job..") else say("No,Problem bye") end end end end Link to comment Share on other sites More sharing options...
Shogun Posted February 22, 2013 Report Share Posted February 22, 2013 Te faltan funciones, esa quest por sí sola no va a funcionar. Link to comment Share on other sites More sharing options...
LeyendasMt2 Posted February 22, 2013 Author Report Share Posted February 22, 2013 me tomas por noob? si me faltaran funciones tambien saltaria error y no salta . El unico error que sale es este qc in malloc() error allocation failed abort (core dumped) que no se que quiere decir. Link to comment Share on other sites More sharing options...
Croqueta Posted February 24, 2013 Report Share Posted February 24, 2013 te faltan esto () en pc.get_name Link to comment Share on other sites More sharing options...
Recommended Posts