Sign in to follow this  
DeathMta

AYUDA : GUI SET VISIBLE

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 

Share this post


Link to post
  
  setTimer(guiSetVisible, 5000, 1, deathText, false)--- ERROR LINEA 1325 
  setTimer(guiSetVisible, 5000, 1, deadBackground, false)--- ERROR LINEA 1326 
  

No se que elemento estás intentando ocultar, supongo que son los que están más abajo.

Share this post


Link to post
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.

Share this post


Link to post

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.

Share this post


Link to post
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)

Share this post


Link to post
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???

Share this post


Link to post
  
  
deathText = guiCreateLabel(0, 0.8, 1, 0.2, [[ 
You died! 
 You will respawn in 5 seconds.]], true) 

???

Share this post


Link to post
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.