Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: oznacza
1. Co oznacza Target?
Chodzi mi o np. taki przyk?ad. Nie rozumiem tego...


Kod:

function busDriver(el, md)
if el ~= localPlayer or not md then return end
if jobTarget > maxTarget and getPedOccupiedVehicle(el) then return end
if jobTarget == maxTarget and not getPedOccupiedVehicle(el) then return end

if jobTarget == #districtsBus then
finishJob()
destroyElement(blip)
destroyElement(jobMarker)
playSoundFrontEnd(5)
setElementData(el,"gracz:praca",false)
else
local veh = getPedOccupiedVehicle(el)
showMarker()
setTimer(function()
playSoundFrontEnd(12)
rp = math.random(1,3)
kasa = math.random(20000,20000)
if getElementData(localPlayer,"player:premium") then
currentMoney = getElementData(el, "player:money") or 0
setElementData(el, "player:money", currentMoney+kasa)
setElementData(el,"player:srp", getElementData(el,"player:srp")+rp)
triggerEvent('onClientAddNotification', localPlayer, 'Za dojechanie na przystanek otrzymujesz,nwynagrodzenie: #00c005'..kasa..' $#FFFFFF oraz #00c005'..rp..' REP', 'success')
end
end,4800,1)
end
end



To jest jaka? zmienna kt?rej si? u?ywa do losowych punkt?w czy co?
2. Co oznacza #
Jak? funkcje w lua odgrywa ten operator? - #.