Search the Community
Showing results for tags 'problemas '.
-
No entiendo los boolean de aqui que está pasando con estas funciones????... -------------------------------- function aliento () if getElementData(getLocalPlayer(), "blood") <= 5000 and not getElementData(getLocalPlayer(), "isDead") == true then ------ attempt to comparare boolean with number ---Error aqui--- local Zx,Zy,Zz = getElementPosition( ped ) local randnum = math.random(1,5) local sound = playSound("sounds/aliento"..randnum..".ogg", Zx, Zy, Zz, false) setSoundMaxDistance(sound, 20) end end setTimer(aliento, 10000, 0) function suspenso () if getElementData(getLocalPlayer(), "blood") <= 3000 and not getElementData(getLocalPlayer(), "isDead") == true then ------ attempt to comparare boolean with number ---Error aqui--- local Zx,Zy,Zz = getElementPosition( ped ) local sound = playSound("sounds/suspenso.ogg", Zx, Zy, Zz, false) setSoundMaxDistance(sound, 20) end end setTimer(suspenso, 9000, 0) local screenX, screenY = guiGetScreenSize() local screenSource = dxCreateScreenSource(screenX, screenY) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() if getVersion ().sortable < "1.1.0" then return else blackWhiteShader, blackWhiteTec = dxCreateShader("fx/blackwhite.fx") if (not blackWhiteShader) then else end end end) addEventHandler("onClientPreRender", getRootElement(), function() if getElementData(getLocalPlayer(), "blood") <= 5000 and not getElementData(getLocalPlayer(), "isDead") == true then ------ attempt to comparare boolean with number ---Error aqui--- dxUpdateScreenSource(screenSource) dxSetShaderValue(blackWhiteShader, "screenSource", screenSource) dxDrawImage(0, 0, screenX, screenY, blackWhiteShader) end end) --------------------------