Xperia Posted February 24, 2013 Posted February 24, 2013 El problema es que no sale la imagen. addEventHandler("onClientRender",root, function() local health = getElementHealth(getLocalPlayer()) if (health == 0) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/1.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 0) and (health >= 10) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/10.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 10) and (health >= 15) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/15.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 15) and (health >= 20) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/20.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 20) and (health >= 25) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/25.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 25) and (health >= 30) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/30.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 30) and (health >= 35) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/35.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 35) and (health >= 40) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/40.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 40) and (health >= 45) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/45.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 45) and (health >= 50) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/50.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 50) and (health >= 55) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/55.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 55) and (health >= 60) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/60.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 60) and (health >= 65) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/65.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 65) and (health >= 70) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/70.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 70) and (health >= 75) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/75.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 75) and (health >= 80) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/80.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 80) and (health >= 85) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/85.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 85) and (health >= 90) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/90.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 90) and (health >= 95) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/95.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 95) and (health >= 100) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/100.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) end end )
Castillo Posted February 24, 2013 Posted February 24, 2013 Algun error? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted February 24, 2013 Posted February 24, 2013 Fijate que esta devolviendo "health". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts