Jump to content

AYUDA : GUI SET VISIBLE


DeathMta

Recommended Posts

Ese es el error ayudenme plz

RfMKQV9.png

function dayZDeathInfo() 
  fadeCamera(false, 1, 0, 0, 0) 
  setTimer(showDayZDeathScreen, 2000, 1) 
end 
addEvent("onClientPlayerDeathInfo", true) 
addEventHandler("onClientPlayerDeathInfo", getRootElement(), dayZDeathInfo) 
function showDayZDeathScreen() 
  setTimer(fadeCamera, 1000, 1, true, 1.5) 
  deadBackground = guiCreateStaticImage(0, 0, 1, 1, "images/dead12.jpg", true) 
  deathText = guiCreateLabel(0, 0.8, 1, 0.2, [[ 
You died!  
 You will respawn in 5 seconds.]], true) 
  guiLabelSetHorizontalAlign(deathText, "center") 
  setTimer(guiSetVisible, 5000, 1, false)--- ERROR LINEA 1325 
  setTimer(guiSetVisible, 5000, 1, false)--- ERROR LINEA 1326 
  setTimer(destroyElement, 5000, 1, deathText) 
  setTimer(destroyElement, 5000, 1, deadBackground) 
end 

Link to comment
function dayZDeathInfo() 
  fadeCamera(false, 1, 0, 0, 0) 
  setTimer(showDayZDeathScreen, 2000, 1) 
end 
addEvent("onClientPlayerDeathInfo", true) 
addEventHandler("onClientPlayerDeathInfo", getRootElement(), dayZDeathInfo) 
function showDayZDeathScreen() 
  setTimer(fadeCamera, 1000, 1, true, 1.5) 
  deadBackground = guiCreateStaticImage(0, 0, 1, 1, "images/dead12.jpg", true) 
  deathText = guiCreateLabel(0, 0.8, 1, 0.2, [[ 
You died!  
 You will respawn in 5 seconds.]], true) 
  guiLabelSetHorizontalAlign(deathText, "center") 
  setTimer(function() guiSetVisible( deadBackground, false) end, 5000, 1)--- ERROR LINEA 1325 
  setTimer(function() guiSetVisible( deathText, false) end, 5000, 1, false)--- ERROR LINEA 1326 
  setTimer(destroyElement, 5000, 1, deathText) 
  setTimer(destroyElement, 5000, 1, deadBackground) 
end 

Es por que pusiste un booleano en vez de un gui-elemento, Error muy básico.

Link to comment

gracias!!

function dayZDeathInfo() 
  fadeCamera(false, 1, 0, 0, 0) 
  setTimer(showDayZDeathScreen, 2000, 1) 
end 
addEvent("onClientPlayerDeathInfo", true) 
addEventHandler("onClientPlayerDeathInfo", getRootElement(), dayZDeathInfo) 
function showDayZDeathScreen() 
  setTimer(fadeCamera, 1000, 1, true, 1.5) 
  deadBackground = guiCreateStaticImage(0, 0, 1, 1, "images/dead12.jpg", true) 
  deathText = guiCreateLabel(0, 0.8, 1, 0.2, [[ 
You died!  
 You will respawn in 5 seconds.]], true) 
  guiLabelSetHorizontalAlign(deathText, "center") 
  setTimer(function() guiSetVisible( deadBackground, false) end, 5000, 1)--- ERROR LINEA 1325 
  setTimer(function() guiSetVisible( deathText, false) end, 5000, 1, false)--- ERROR LINEA 1326 
  setTimer(destroyElement, 5000, 1, deathText) 
  setTimer(destroyElement, 5000, 1, deadBackground) 
end 

Es por que pusiste un booleano en vez de un gui-elemento, Error muy básico.

Link to comment
gracias!!
function dayZDeathInfo() 
  fadeCamera(false, 1, 0, 0, 0) 
  setTimer(showDayZDeathScreen, 2000, 1) 
end 
addEvent("onClientPlayerDeathInfo", true) 
addEventHandler("onClientPlayerDeathInfo", getRootElement(), dayZDeathInfo) 
function showDayZDeathScreen() 
  setTimer(fadeCamera, 1000, 1, true, 1.5) 
  deadBackground = guiCreateStaticImage(0, 0, 1, 1, "images/dead12.jpg", true) 
  deathText = guiCreateLabel(0, 0.8, 1, 0.2, [[ 
You died!  
 You will respawn in 5 seconds.]], true) 
  guiLabelSetHorizontalAlign(deathText, "center") 
  setTimer(function() guiSetVisible( deadBackground, false) end, 5000, 1)--- ERROR LINEA 1325 
  setTimer(function() guiSetVisible( deathText, false) end, 5000, 1, false)--- ERROR LINEA 1326 
  setTimer(destroyElement, 5000, 1, deathText) 
  setTimer(destroyElement, 5000, 1, deadBackground) 
end 

Es por que pusiste un booleano en vez de un gui-elemento, Error muy básico.

Es imposible que ese código se ejecute, algo me dice que es una de tus multicuentas 8)

Link to comment
gracias!!
function dayZDeathInfo() 
  fadeCamera(false, 1, 0, 0, 0) 
  setTimer(showDayZDeathScreen, 2000, 1) 
end 
addEvent("onClientPlayerDeathInfo", true) 
addEventHandler("onClientPlayerDeathInfo", getRootElement(), dayZDeathInfo) 
function showDayZDeathScreen() 
  setTimer(fadeCamera, 1000, 1, true, 1.5) 
  deadBackground = guiCreateStaticImage(0, 0, 1, 1, "images/dead12.jpg", true) 
  deathText = guiCreateLabel(0, 0.8, 1, 0.2, [[ 
You died!  
 You will respawn in 5 seconds.]], true) 
  guiLabelSetHorizontalAlign(deathText, "center") 
  setTimer(function() guiSetVisible( deadBackground, false) end, 5000, 1)--- ERROR LINEA 1325 
  setTimer(function() guiSetVisible( deathText, false) end, 5000, 1, false)--- ERROR LINEA 1326 
  setTimer(destroyElement, 5000, 1, deathText) 
  setTimer(destroyElement, 5000, 1, deadBackground) 
end 

Es por que pusiste un booleano en vez de un gui-elemento, Error muy básico.

Es imposible que ese código se ejecute, algo me dice que es una de tus multicuentas 8)

multi cuentas???

Link to comment
  • Recently Browsing   0 members

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