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: then
1. 'then' expcted
Witam, mam b??d tego typu

db3
https://imgur.com/a/yU1KBk8

            
if v[1] == "RZ" and getElementData(veh"zawieszenie") and getElementData(veh"zawieszenie") > or v[1] == "TM1" and getElementData(veh"veh:mk1") and getElementData(veh"veh:mk1") == or v[1] == "TM2" and getElementData(veh"veh:mk2") and getElementData(veh"veh:mk2") == or v[1] == "TM3" and getElementData(veh"veh:mk3") and getElementData(veh"veh:mk3") == 1  or v[1] == "FWD" getElementData(veh"veh:naped") and getElementData(veh"veh:naped") == "FWD" or v[1] == "AWD" getElementData(veh"veh:naped") and getElementData (veh"veh:naped") == "AWD" or v[1] == "RWD" getElementData(veh"veh:naped") and getElementData(veh"veh:naped") == "RWD" then
2. if rubryka == kod then
Witam jestem w ob??dzie gdy? nie wiem dlaczego nie dziala mi kod wszystko ?adnie opisane mam nadziej? na pomoc z strony innych graczy tej gierki.
-- po wejsciu w marker
Kod:

kod = kody[rnd]
rubryka = guiCreateEdit(860*px, 529*py, 213*px, 54*py, "", false)
guiEditSetMaxLength(rubryka, 5)
guiSetAlpha(rubryka,0)

--po wpisaniu kodu w rybryke ( i to nie dzia?a)
Kod:

function wait_security (el, md)
if el ~= localPlayer and md then return end
if rubryka == kod then
removeEventHandler("onClientRender", root, kody_gui)
showCursor(false)
showChat(true)
setPedAnimation ( localPlayer, "CARRY", "crry_prtial", 1,true )
local skrzynia = createObject(1271, 0, 0, 0)
attachElements ( skrzynia, localPlayer, 0, 0.8, 0.5)
setElementCollisionsEnabled(skrzynia, false)
end
end


no i przed funckj? wait_security mamy klikni?cie wywo?uj?ce funkcje bez if rubryka == kod wszystko dzia?a.
3. Niepotrzebny then koło showCursor
Witajcie. Mam skrypt w kt?rym gdy gracz siedzi w poje?dzie mo?e w??czy? gui i wy??czy? ponownym klikni?ciem F5 ale db 3 czepia sie sam nwm czego i troszke mnie to denerwuje.
Kod

function PZ()
    if 
guiGetVisible(Panel) == false then
     
if isPedInVehicle (getLocalPlayer()) then
        guiSetVisible
(Paneltrue)
        
showCursor(true
    elseif
        
guiSetVisible(Panelfalse)
        
showCursor (false)
    
end
end
end
bindKey
("F5","down",PZ)


DB3:

Poco ten then ko?o showCursor ? Nastawia?em ich tyle ?e to w g?owie sie nie mie?ci i tak nie dzia?a?o.
4. if (auto[getElementModel(source)]) then - nie działa
Witam mam taki kodzik:

Kod:

auto = { [482]=true,[596]=true,[597]=true,[432]=true,[433]=true,[528]=true,[490]=true,[599]=true }

addEventHandler ("onClientMarkerHit", root,
function ( hitElement )
if hitElement == getLocalPlayer() then
if (auto[getElementModel(source)]) then
if getElementData (source, "dos") == true then
addEventHandler ("onClientRender", root, otwwyb)
guiSetVisible( lab1, true )
guiSetVisible( lab2, true )
guiSetVisible( lab3, true )
guiSetVisible( wybto, true )
guiSetVisible( wybinfo, true )
guiSetVisible( wybzamk, true )
showCursor (true)
end
end
end
end
)


Ten kod ma robi? ?e je?eli wjedziesz w marker o danym pojezdzie podanym w tabeli to gui sie pokaze.... lecz nie dzia?a.
debug = nic