Jump to content

Isaias000

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Isaias000

  1. Muchas,muchas gracias!
  2. Estoy aprendiendo scripting,y estoy probando hacer un trabajo simple (Camionero) pero el menu no funciona correctamente,no se porque. ventana = guiCreateWindow(693, 183, 534, 554, "Trabajos", false) guiWindowSetSizable(ventana, false) serCamionero = guiCreateButton(157, 468, 224, 70, "Quiero ser camionero", false, ventana) memo = guiCreateMemo(14, 27, 504, 434, " ¿Quieres ser camionero?\n\n =Tu trabajo sera transportar cargamentos por todo San Andreas=", false, ventana) cerrar = guiCreateButton(436, 528, 74, 17, "Cerrar", false, ventana) memo2 = guiCreateMemo(14, 27, 504, 434, " ¿Quieres ser camionero?\n\n =Tu trabajo sera transportar cargamentos por todo San Andreas=", false, ventana) marker2=createMarker ( -2238.404296875, 2352.984375, 4.9799947738647, "cylinder", 1.5, 255, 0, 0, 170, getRootElement () ) function botonGui () if (guiGetVisible (ventana) == false) then guiSetVisible (ventana, true) showCursor (true) else guiSetVisible (ventana, false) showCursor (false) end end bindKey("F4", "down", botonGui) function botonCamionero () user=getLocalPlayer ( ) camionero= getTeamFromName ("Camionero") if (camionero) then setPlayerTeam (user, Camionero) outputChatBox ("Ya eres camionero") end end addEventHandler ("onClientGUIClick", serCamionero, botonCamionero) function cerrarGui () if (guiGetVisible (ventana) == true) then guiSetVisible (ventana, false) showCursor (false) end end addEventHandler ("onClientGUIClick", cerrar, cerrarGui) Este es el error que me da el debug Espero su ayuda!!
×
×
  • Create New...