Jump to content

SlothBot Problema


Platin

Recommended Posts

Posted

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

Posted

Como va a aparecer si nunca estas ejecutando la funcion "Crearbot"?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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...

Posted

Lo pusiste como server side?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Postea el contenido del archivo meta.xml.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...