Jump to content

Comando con espacio


Recommended Posts

Posted

Al parecer no se puede.

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.

  • 3 weeks later...
Posted

debes ponerle los argumentos a la funcion..

por ejemplo

function comando(player,comand,state) 
if (state=abrir) then 
moveObje.. 
elseif (state = cerrar ) then 
moveObject 
else 
outputChatBox("Syntaxis: /comando (abrir/cerrar)",player,255,255,255) 
end 
end 
addCommandHanlder("puerto",comando) 

lo ise a la rapida.. modelalo

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

Si, eso es una manera.

P.D: Tenes un par de errores:

function comando ( player, comand, state ) 
    if ( state == "abrir" ) then 
        moveObject ( ) 
    elseif ( state == "cerrar" ) then 
        moveObject ( ) 
    else 
        outputChatBox ( "Syntaxis: /comando (abrir/cerrar)", player, 255, 0, 0 ) 
    end 
end 
addCommandHandler ( "puerto", comando ) 

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

cierto. Gracias..

Y funciono o no?? si funciono minimo agradecer la ayuda

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted
cierto. Gracias..

Y funciono o no?? si funciono minimo agradecer la ayuda

Xperia está de vacaciones, y debería agradecer a Solid, no a ti.

Ingame name: Otto

State: Inactive

Web designer. Playing MTA:SA since 2008.

Posted

Primero. No sabia que estaba de vacaciones.

Segundo. No le dije que me agradeciera a mi.

Tercero. Di la base para el script del comando con espacio. Solid lo modelo, que de hecho le dije a xperia que lo hiciera.

Cuarto. Gracias Alexs por por informarme sobre eso :)

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

Y funciono o no?? si funciono minimo agradecer la ayuda

:roll:

Ingame name: Otto

State: Inactive

Web designer. Playing MTA:SA since 2008.

  • 4 weeks later...
  • Recently Browsing   0 members

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