Platin Posted October 25, 2013 Posted October 25, 2013 Hola, hay un problema que me tiene medio las pelotas por el piso, el tema, no aparece el SlothBot. Comando: Sobrevivientes = getTeamFromName ( "Sobrevivientes") function Crearbot () Guardia1 = exports [ "slothbot" ]:spawnBot ( 2174.55078125, -1764.2509765625, 19.367008209229, 285, 0, 0, 320.17120361328, Sobrevivientes, 34 ) end addEvent("onBotSpawned", true) addEventHandler("onBotSpawned",getRootElement(), function ( ) exports [ "slothbot" ]:SpawnBot(Guardia1,Sobrevivientes) end ) Si me preguntan lo saque de este post ya que no sabía como empezar: https://forum.multitheftauto.com/viewtopic.php?f=145&t=64536&p=611216&hilit=Slothbot#p611216 https://www.proyectomila.net @platin
Castillo Posted October 25, 2013 Posted October 25, 2013 Como va a aparecer si nunca estas ejecutando la funcion "Crearbot"? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Platin Posted October 25, 2013 Author Posted October 25, 2013 Como va a aparecer si nunca estas ejecutando la funcion "Crearbot"? ¿Dónde iría? Lo siento, soy nuevo en esto y apenas se crear alguna que otra cosa básica. https://www.proyectomila.net @platin
Castillo Posted October 25, 2013 Posted October 25, 2013 function Crearbot ( ) Sobrevivientes = getTeamFromName ( "Sobrevivientes") Guardia1 = exports [ "slothbot" ]:spawnBot ( 2174.55078125, -1764.2509765625, 19.367008209229, 285, 0, 0, 320.17120361328, Sobrevivientes, 34 ) end addEventHandler ( "onResourceStart", resourceRoot, Crearbot ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Platin Posted October 25, 2013 Author Posted October 25, 2013 function Crearbot ( ) Sobrevivientes = getTeamFromName ( "Sobrevivientes") Guardia1 = exports [ "slothbot" ]:spawnBot ( 2174.55078125, -1764.2509765625, 19.367008209229, 285, 0, 0, 320.17120361328, Sobrevivientes, 34 ) end adEventHandler ( "onResourceStart", resourceRoot, Crearbot ) Muchas gracias, cualquier cosa, te aviso. :3 EDIT: Pusiste adEventHandler en vez de AddEventHandler, :3 EDITEDIT: No me funciona... https://www.proyectomila.net @platin
Castillo Posted October 25, 2013 Posted October 25, 2013 Lo pusiste como server side? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Platin Posted October 25, 2013 Author Posted October 25, 2013 Lo pusiste como server side? No. Si es posible usted poder explicar como hacerlo? https://www.proyectomila.net @platin
Castillo Posted October 25, 2013 Posted October 25, 2013 Postea el contenido del archivo meta.xml. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Platin Posted October 25, 2013 Author Posted October 25, 2013 "Platin" description="Guardias Base" type="script" version="1.0" /> https://www.proyectomila.net @platin
Castillo Posted October 25, 2013 Posted October 25, 2013 Esta puesto como server side, osea que deberia funcionar. Estando en el juego, escribi esto en el chat: /debugscript 3. Luego reinicia el recurso y fijate si salta algun error. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Platin Posted October 25, 2013 Author Posted October 25, 2013 Me salta error con otro resource que nada que ver. Luego al rato el slothbot me dice: ERROR: slothbot/sbclient.lua:115: attempt to compare boolean whit number Eso, me salta creo que cuando me pega un zombie. (Resource: zombies) EDIT: No, justo salto de casualidad. EDITEDIT: Lo termine solucionando, igual gracias. La próxima vez si no podes ayudar, simplemente dilo, un saludo. https://www.proyectomila.net @platin
Recommended Posts