Wysłany: 2016-11-18, 22:48
Artystek
Wiek: 23 Na forum: 3520 dni Posty: 143
Nick w MP: Artystek
Piwa : 74
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?
Wysłany: 2016-11-18, 22:57
PapaSmerf
Wiek: 25 Na forum: 3525 dni Posty: 237
Piwa : 3857
Wudake mi si? ?e musisz zmieni? te na czas lub N/A lub w og?le to usun?? ja mam bez tego i dzia?a u mnie inny kodzik troszke.
Wysłany: 2016-11-18, 23:13
Artystek
Wiek: 23 Na forum: 3520 dni Posty: 143
Nick w MP: Artystek
Piwa : 74
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)
Wysłany: 2016-11-18, 23:26
Cjalis
Wiek: 35 Na forum: 3543 dni Posty: 26
Nick w MP: Cejot
Piwa : 36
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
Wysłany: 2016-11-18, 23:58
=DC=
Wiek: 35 Na forum: 3944 dni Posty: 223
Nick w MP: =DC=
Piwa : 72
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
[you]
, jeśli Ci pomogłem postaw mi lub Dzięki!
Tagi: getelementdata
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: