HeviK*
Wiek: 29 Na forum: 3015 dni Posty: 34
Piwa : 2
Witam ! Chodzi mi o to ?e w debugscripcie mam blad systemSurvivor.lua:1542: attempt to compare number with boolean
JEST TO LINIJKA if getElementData ( getLocalPlayer (), "blood" ) >= 9000 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 0 , 255 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/10000.png" , 0 , 0 , 0 , tocolor ( 0 , 255 , 0 , 80 ), true , statsWindows )
function ui ()
statsWindows = dxDrawImage ( screenWidth * 0.957 , screenHeight * 0.010 , screenWidth *- 0.12 , screenHeight * 0.340 , "img/Fon.png" , 0 , 0 , 0 , tocolor ( 0 , 0 , 0 , 80 ))
dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/Fon.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 80 ), true , statsWindows )
if getElementData ( getLocalPlayer (), "blood" ) >= 9000 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 0 , 255 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/10000.png" , 0 , 0 , 0 , tocolor ( 0 , 255 , 0 , 80 ), true , statsWindows )
elseif getElementData ( getLocalPlayer (), "blood" ) >= 8000 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 50 , 255 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/9000.png" , 0 , 0 , 0 , tocolor ( 50 , 255 , 0 , 80 ), true , statsWindows )
elseif getElementData ( getLocalPlayer (), "blood" ) >= 7000 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 100 , 255 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/8000.png" , 0 , 0 , 0 , tocolor ( 100 , 255 , 0 , 80 ), true , statsWindows )
elseif getElementData ( getLocalPlayer (), "blood" ) >= 6000 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 150 , 255 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/7000.png" , 0 , 0 , 0 , tocolor ( 150 , 255 , 0 , 80 ), true , statsWindows )
elseif getElementData ( getLocalPlayer (), "blood" ) >= 5000 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 200 , 255 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/6000.png" , 0 , 0 , 0 , tocolor ( 200 , 255 , 0 , 80 ), true , statsWindows )
elseif getElementData ( getLocalPlayer (), "blood" ) >= 4000 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 250 , 255 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/5000.png" , 0 , 0 , 0 , tocolor ( 250 , 255 , 0 , 80 ), true , statsWindows )
elseif getElementData ( getLocalPlayer (), "blood" ) >= 3000 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 255 , 200 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/4000.png" , 0 , 0 , 0 , tocolor ( 255 , 200 , 0 , 80 ), true , statsWindows )
elseif getElementData ( getLocalPlayer (), "blood" ) >= 2000 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 255 , 150 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/3000.png" , 0 , 0 , 0 , tocolor ( 255 , 150 , 0 , 80 ), true , statsWindows )
elseif getElementData ( getLocalPlayer (), "blood" ) >= 1000 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 255 , 100 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/2000.png" , 0 , 0 , 0 , tocolor ( 255 , 100 , 0 , 80 ), true , statsWindows )
elseif getElementData ( getLocalPlayer (), "blood" ) >= 500 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 255 , 50 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/1000.png" , 0 , 0 , 0 , tocolor ( 255 , 50 , 0 , 80 ), true , statsWindows )
elseif getElementData ( getLocalPlayer (), "blood" ) >= 0 then
dxT = dxDrawBorderedText ( " Zdrowie" , screenWidth * 0.840 , screenHeight * 0.04 , screenHeight * 0.20 , screenHeight * 0.022 , tocolor ( 255 , 0 , 0 , 80 ), 0.8 , 1 , "bankgothic" , "left" , "top" , false , false , false , statsWindows )
elementeat = dxDrawImage ( screenWidth * 0.840 , screenHeight * 0.01 , screenHeight * 0.20 , screenHeight * 0.022 , "img/blood/500.png" , 0 , 0 , 0 , tocolor ( 255 , 0 , 0 , 80 ), true , statsWindows )
end