Wysłany: 2019-12-17, 20:32
k1nG
grove street home
Wiek: 26 Na forum: 3557 dni Posty: 29
Nick w MP: Trust / Tiffergan
Piwa : 12
https://prnt.sc/qc78j5
to jest do 708
Kod: setTimer(function()
if not getElementData(localPlayer,'logedin') then return end
if (getElementData(localPlayer, "blood") <= 0) then <-- linijka 708
if not getElementData(localPlayer, "isDead") then
local grunt = getGroundPosition(getElementPosition(localPlayer))
triggerServerEvent("kilLDayZPlayer", localPlayer, false, false,false,grunt);
end
end
if (getElementData(localPlayer, "blood") > 12000) then
setElementData(localPlayer, "blood", 12000);
end
end,50,0)
[/code]
tutaj 361
Kod: function math.round(number, decimals, method)
local decimals = decimals or 0;
local factor = 10^decimals;
if (method == "ceil" or method == "floor") then
return math[method](number*factor)/factor;
else
return tonumber(("%."..decimals.."f"):format(number)); <--- linijka 361
end
end
Wysłany: 2019-12-17, 20:38
Wilq
Wiek: 24 Na forum: 4429 dni Posty: 3410
Piwa : 739
Pr?ba por?wnania true / false z liczb?. To samo w drugim, pr?bujesz sformatowa? true/false.
Sprawd? czy masz tak? elementDate i czy jest to liczba.
Więcej szczegółów
Wystawiono 1 piw(a):k1nG
Wysłany: 2019-12-17, 21:15
k1nG
grove street home
Wiek: 26 Na forum: 3557 dni Posty: 29
Nick w MP: Trust / Tiffergan
Piwa : 12
Faktycznie m?j b??d, za szybko si? zalogowa?em gdy jeszcze gmod nie by? ca?kiem za?adowany nie stworzy?o mi elementdaty i przez to ten b??d, dzi?ki za pomoc.
Tagi: nie :: rozumiem :: chodzi :: ktoś :: coś?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: