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

Wysłany: 2016-11-18, 22:48


Artystek







Wiek: 23
Na forum: 3520 dni
Posty: 143
Nick w MP: Artystek

Piwa: 74

Respekt: 55,3

Witam mam problem z tym kodem:


function render()
        local now getTickCount()
        local endTime start 2000
        local elapsedTime now start
        local duration endTime start
        local progress elapsedTime duration
        local fAnimationTime getEasingValue(progress"Linear")
        if alpha and alpha <= 255 then
        alpha = (1+fAnimationTime)*50
        end
        if alpha2 and alpha2 <= 162 then
        alpha2 = (1+fAnimationTime)*50
        end
        guiSetAlpha(button,alpha*0.005)
        local whours getElementData(localPlayer,"player:workinjob")    
        local kasa getElementData(localPlayer,"player:bank_money")    
        local date getElementData(localPlayer,"player:registerdate") or "0000-00-00 00:00:00"
        local premiumdate getElementData(localPlayer,"player:premiumdate") or "Brak"
        local prawkoB getElementData(localPlayer,"player:pjB") or "Brak"
        local prawkoC getElementData(localPlayer,"player:pjC") or "Brak"
        local prawkoL getElementData(localPlayer,"player:pjL") or "Brak"




TUTAJ KOD GUI

        
   end


W panelu nie wy?wietla si? nic innego opr?cz minut na s?u?bie, daty rejestracji oraz terminu premium. Zna kto? rozwi?zanie?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-11-18, 22:57


PapaSmerf







Wiek: 25
Na forum: 3525 dni
Posty: 237

Piwa: 3857

Respekt: 64

Wudake mi si? ?e musisz zmieni? te
or "Brak
na czas lub N/A lub w og?le to usun?? ja mam bez tego i dzia?a u mnie inny kodzik troszke.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-11-18, 23:13


Artystek







Wiek: 23
Na forum: 3520 dni
Posty: 143
Nick w MP: Artystek

Piwa: 74

Respekt: 55,3


local whours getElementData(localPlayer,"player:workinjob")    
        local kasa getElementData(localPlayer,"player:bank_money")    
        local date getElementData(localPlayer,"player:registerdate") or "0000-00-00 00:00:00"
        local premiumdate getElementData(localPlayer,"player:premiumdate") or "Brak"
        local prawkoB getElementData(localPlayer,"player:pjB") 
        local prawkoC getElementData(localPlayer,"player:pjC") 
        local prawkoL getElementData(localPlayer,"player:pjL"


B??d:

attempt to concalenate local 'prawkoL' (a boolean value)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-11-18, 23:26


Cjalis







Wiek: 35
Na forum: 3543 dni
Posty: 26
Nick w MP: Cejot

Piwa: 36

Respekt: 70


        local Date=getElementData(localPlayer,"player:registerdate") or "N/A"
        local Time=tonumber(getElementData(localPlayer,"player:hours")) or "N/A"
        local Premium=getElementData(localPlayer,"player:premiumdate") or "N/A"
        local Pja=getElementData(localPlayer,"player:license:pjA")
        local Pjb=getElementData(localPlayer,"player:license:pjB")
        local Pjc=getElementData(localPlayer,"player:license:pjC")
        local Pjl=getElementData(localPlayer,"player:license:pjL")


Tutaj masz przyk?ad kt?ry na sto procent dzia?a Pozmieniaj w swoim i git :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-11-18, 23:58


=DC=







Wiek: 35
Na forum: 3944 dni
Posty: 223
Nick w MP: =DC=

Piwa: 72

Respekt: 150
Respekt: 150Respekt: 150

attempt to concalenate local 'prawkoL' (a boolean value)

boolean czyli true albo false

Podejrzewam, ?e nadawanie elementDat wygl?da tak:

local Pja=setElementData(localPlayer,"player:license:pjA"true) --je?li ma prawko
albo
local Pja=getElementData(localPlayer,"player:license:pjA"false) --je?li nie ma prawka


Musisz dorobi? sobie do ka?dego prawka takie co? zeby ci pokazywa?o w gui poprawnie:

local Pja=getElementData(localPlayer,"player:license:pjA")
local Pjb=getElementData(localPlayer,"player:license:pjB")
local Pjc=getElementData(localPlayer,"player:license:pjC")
local Pjl=getElementData(localPlayer,"player:license:pjL")

if Pja == true then --posiada prawko
    guiSetText(label1"Zdane")
else --nie ma prawka
   guiSetText(label1"Nie zdane")
end

if Pjb == true then --posiada prawko
    guiSetText(label2"Zdane")
else --nie ma prawka
   guiSetText(label2"Nie zdane")
end

if Pjc == true then --posiada prawko
    guiSetText(label3"Zdane")
else --nie ma prawka
   guiSetText(label3"Nie zdane")
end

if Pjl == true then --posiada prawko
    guiSetText(label4"Zdane")
else --nie ma prawka
   guiSetText(label4"Nie zdane")
end


Podpis

Witaj
, jeśli Ci pomogłem postaw mi :piwo: lub R* Dzięki!

Postaw piwo autorowi tego posta
 

 
Tagi: getelementdata
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » getElementData 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