Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-06-26, 20:30


HeviK*







Wiek: 29
Na forum: 3016 dni
Posty: 34

Piwa: 2

Respekt: 40,5

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.04screenHeight*0.20screenHeight*0.022tocolor 0255080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)    
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/10000.png"000tocolor(0255080), truestatsWindows)


function ui ()
    statsWindows dxDrawImage screenWidth*0.957 screenHeight*0.010screenWidth*-0.12screenHeight*0.340"img/Fon.png",0,0,0,tocolor(0,0,080))

    dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/Fon.png"000tocolor(25525525580), truestatsWindows) 
    
    if getElementData(getLocalPlayer(), "blood") >= 9000 then
    dxT dxDrawBorderedText "      Zdrowie",screenWidth*0.840,screenHeight*0.04screenHeight*0.20screenHeight*0.022tocolor 0255080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)    
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/10000.png"000tocolor(0255080), truestatsWindows)
    elseif getElementData(getLocalPlayer(), "blood") >= 8000 then
    dxT dxDrawBorderedText "      Zdrowie",screenWidth*0.840,screenHeight*0.04screenHeight*0.20screenHeight*0.022tocolor 50255080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)    
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/9000.png"000tocolor(50255080), truestatsWindows)   
    elseif getElementData(getLocalPlayer(), "blood") >= 7000 then
    dxT dxDrawBorderedText "      Zdrowie",screenWidth*0.840,screenHeight*0.04screenHeight*0.20screenHeight*0.022tocolor 100255080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)        
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/8000.png"000tocolor(100255080), truestatsWindows)   
    elseif getElementData(getLocalPlayer(), "blood") >= 6000 then
    dxT dxDrawBorderedText "      Zdrowie",screenWidth*0.840,screenHeight*0.04screenHeight*0.20screenHeight*0.022tocolor 150 ,255 ,080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)    
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/7000.png"000tocolor(150 ,255 ,080), truestatsWindows)   
    elseif getElementData(getLocalPlayer(), "blood") >= 5000 then
    dxT dxDrawBorderedText "      Zdrowie",screenWidth*0.840,screenHeight*0.04screenHeight*0.20screenHeight*0.022tocolor 200 ,255 ,080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)    
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/6000.png",,0tocolor(200 ,255 ,080), truestatsWindows)  
    elseif getElementData(getLocalPlayer(), "blood") >= 4000 then  
    dxT dxDrawBorderedText "      Zdrowie",screenWidth*0.840,screenHeight*0.04screenHeight*0.20screenHeight*0.022tocolor 250 ,255 ,080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)    
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/5000.png",,0tocolor(250 ,255 ,080), truestatsWindows)
    elseif getElementData(getLocalPlayer(), "blood") >= 3000 then
    dxT dxDrawBorderedText "      Zdrowie",screenWidth*0.840,screenHeight*0.04screenHeight*0.20screenHeight*0.022tocolor 255 ,200 ,080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)    
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/4000.png",,0tocolor(255 ,200 ,080), truestatsWindows)
    elseif getElementData(getLocalPlayer(), "blood") >= 2000 then 
    dxT dxDrawBorderedText "      Zdrowie",screenWidth*0.840,screenHeight*0.04screenHeight*0.20screenHeight*0.022tocolor 255 ,150 ,080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)    
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/3000.png",,0tocolor(255 ,150 ,080), truestatsWindows)
    elseif getElementData(getLocalPlayer(), "blood") >= 1000 then
    dxT dxDrawBorderedText "      Zdrowie",screenWidth*0.840,screenHeight*0.04screenHeight*0.20screenHeight*0.022tocolor 255 ,100 ,080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)    
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/2000.png",,0tocolor(255 ,100 ,080), truestatsWindows)
    elseif getElementData(getLocalPlayer(), "blood") >= 500 then
    dxT dxDrawBorderedText "      Zdrowie",screenWidth*0.840,screenHeight*0.04screenHeight*0.20screenHeight*0.022tocolor 25550080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)    
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/1000.png"000tocolor(25550080), truestatsWindows)
    elseif getElementData(getLocalPlayer(), "blood") >= 0 then 
    dxT dxDrawBorderedText "      Zdrowie",screenWidth*0.840,screenHeight*0.04screenHeight*0.20screenHeight*0.022tocolor 2550080), 0.81"bankgothic""left""top",false,false,falsestatsWindows)    
    elementeat dxDrawImage screenWidth*0.840,screenHeight*0.01screenHeight*0.20screenHeight*0.022"img/blood/500.png"000tocolor(2550080), truestatsWindows)
    end 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-06-26, 21:01


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

Poka? ca?y b??d z DB3.
Spr?buj da? tak:
if tonumber(getElementData(getLocalPlayer(), "blood")) >= 9000 then


Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
HeviK*
Wysłany: 2018-06-26, 23:31


HeviK*







Wiek: 29
Na forum: 3016 dni
Posty: 34

Piwa: 2

Respekt: 40,5

Kalizman, Nie dziala niestety !

https://imgur.com/MPlyhMW

Postaw piwo autorowi tego posta
 

 
Tagi: porownanie :: liczb :: nie :: dziala
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Porownanie liczb nie dziala Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku