Jump to content

problema


Javier

Recommended Posts

Posted

Hola chicos, miren este script, me dice

BOSS\Jason.lua:22: Bad argument @ 'getElementPosition' [Expected element at argument 1, got nil] 

El script

function kill ( slothbot ) 
local x, y, z = getElementPosition( slothbot ) -- Este me dice que está mal.. 
local hora,minuto = getTime() 
if ( hora == 02 and minuto == 58 ) then 
createExplosion(x, y, z, 4) 
killPed( slothbot ) 
destroyElement( blip ) 
outputChatBox("NEMESIS HA SIDO DESTRUIDO", getRootElement(), 0, 255, 0) 
end 
end 
setTimer(kill, 2000, 0) 

Posted
function kill ( slothbot ) 

Borra slothbot de ahi.

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

Gracias Solidsnake Ahora si anda, el unico problema es que cuadno no está el BOT , me dá en la consola Bad Argumente. Pero el scrpt en Si anda.

Posted

Pone:

if isElement ( slothbot ) then 
-- El codigo tuyo aqui. 
end 

dentro de la funcion del timer.

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

De nada.

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.

  • Recently Browsing   0 members

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