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: 3157 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.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 


Postaw piwo autorowi tego posta
 

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


Kalizman







Wiek: 24
Na forum: 3792 dni
Posty: 1394

Piwa: 4624

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: 3157 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 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