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: określić
1. nie można określić wartości markera
Witam pom?g?by kto? z b??dem ?

DB3:
Kod:


Bad Argument @ 'isElementWithinMarker' [Expected marker at argument 2, got nill]


kod

function cnmarker ()


cmarker createMarker(-1500.94,744.48,7.19"cylinder"1.225500)
addEventHandler("onClientMarkerHit"cmarker, function(el22)
if 
el22 ~= localPlayer then return end 
triggerEvent
("onClientAddNotification"localPlayer"git !""info"
end)
end



addEventHandler
("onClientKey"root, function(buttonstate)
if 
isElementWithinMarker(localPlayercmarkerthen
if state then
los 
math.random(1#klawisze)
outputChatBox("Kliknij "..klawisze[los][1].." ")
if 
button == klawisze[los][1then
outputChatBox
("PRAWID?OWY WYNIK")
else
outputChatBox("B??DNY WYNIK")

end
end
end
end
)


B??d le?y tutaj

if isElementWithinMarker(localPlayercmarkerthen
2. Nie można określić wartości.
Witam co mam w tej warto??i ?le ?

b??d w DB3
Kod:


attempt to perform arithmetic on global 'przelicznik' (a nil value)



kod

    setTimer 
( function()
    
local przelicznik math.random(45,55)
    
end10000)    
    
local sell getElementData(localPlayer"player:kgall")
    
local hajsiwo sell*przelicznik
3. Jak określić brak stringa ?
Robi? suszark? na serwer i id pojazdu gdy jest zrespiony to pokazuje publiczny. Zastosowa?em

if id == nil then
guiSetText(idPojazdu, "Publiczny")
end

lecz jak to zastosowa? do nazwy wlasciciela ? Poniewa? nil nie dzia?a :/