Jump to content

ayuda por favor con mi script


racing

Recommended Posts

Posted
Quote

hola mucho gusto a quien lea esto , estoy buscando ayuda ya que estoy empezando a aprender script y estoy haciendo uno el cual vi en una pagina de tutoriales de google , la cuestión es un panel de ayuda esos de F9 se q no es algo original pero es lo que estaba de tutorial así q aja, el problema que tengo con el script es que al momento de activarlo sale la ventana con el botón y el texto pero ni el f9 ni el botón de cerrar funciona tonces no se que pasa hay , aqui dejare el codigo
 

ventana = guiCreateWindow(282, 127, 705, 466, "panel ayuda darka", false)
guiWindowSetSizable(ventana, false)
 
boton = guiCreateButton(19, 431, 71, 25, "cerrar", false, ventana)
guiSetProperty(boton, "NormalTexColor", "FFAAAAAA")
showCursor(true)
Tab = guiCreateTabPanel(9, 23, 686, 398, false, ventana)
 
Tabreglas = guiCreateTab("Reglas", Tab)
 
memo1 = guiCreateMemo(10, 10, 666, 354, "reglas del servidor carajo \n4+5 es igual a  }", false, Tabreglas)
guiMemoSetReadOnly(memo1, true)
 
Tabcomandos = guiCreateTab("comandos", Tab)
 
memo2 = guiCreateMemo(9, 7, 667, 357, "COMANDOS DEL SERVIDOR \n1 cp}}/cp\n2asdasda", false, Tabcomandos)
guiMemoSetReadOnly(memo2, true)
 
-- funciones 1
guiSetVisible(ventana, false)
 
function abrirocerra()
    if (guiGetVisible(ventana) == false ) then
        guiGetVisible(ventana, true)
        showCursor (true)    
    else
        guiGetVisible(ventana, false)
        showCursor (false)
 
    end
end
bindKey("F9", "donw", abrirocerra)
 
function cerrarboton()
 
    guiGetVisible(ventana, false)
    showCursor(false)
   
 
end
 
addEventHandler("onClientGuiClick", boton , cerrarboton, false )
 
 
 
 
 
 y bueno la verdad si alguien es tan amable de decirme que pasa para corregirlo en verdad lo agradezco

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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