DeathMta Posted January 25, 2016 Share Posted January 25, 2016 Ese es el error ayudenme plz 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
Tomas Posted January 25, 2016 Share Posted January 25, 2016 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. Link to comment
starksZ Posted January 25, 2016 Share Posted January 25, 2016 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
DeathMta Posted January 27, 2016 Author Share Posted January 27, 2016 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
Tomas Posted January 27, 2016 Share Posted January 27, 2016 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 Link to comment
starksZ Posted January 27, 2016 Share Posted January 27, 2016 Nosé no lo testie, Ni estando muerto sere ese tipo . Link to comment
DeathMta Posted January 29, 2016 Author Share Posted January 29, 2016 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 multi cuentas??? Link to comment
Enargy, Posted January 29, 2016 Share Posted January 29, 2016 deathText = guiCreateLabel(0, 0.8, 1, 0.2, [[ You died! You will respawn in 5 seconds.]], true) ??? Link to comment
Recommended Posts