Rat32 Posted May 14, 2015 Share Posted May 14, 2015 function asastkise() if guiGetText(tytul) == "Tytuł: Mleko" then guiSetVisible(oknoprz, false) showCursor(false) exports["notifications"]:showBox("info","Na Twoim radarze zostało umieszczone miejsce rozładunku.") jakafura = getPedOccupiedVehicle(localPlayer) nazwafury = getVehicleName(jakafura) trasa = true if guiGetText(wyladunek) == "Wyładunek: San Fierro" then punkt = createMarker(-2443.31812, 740.89063, 34, "cylinder", 10, 0, 255, 255, 20) blip = createBlip(-2443.31812, 740.89063, 34.01563, 41) end if guiGetText(wyladunek) == "Wyładunek: Los Santos" then guiSetText(wynagrodzenie, "$500") end if guiGetText(wyladunek) == "Wyładunek: Las Venturas" then guiSetText(wynagrodzenie, "$2000") end if guiGetText(wyladunek) == "Wyładunek: Bayside" then guiSetText(wynagrodzenie, "$1700") end if guiGetText(wyladunek) == "Wyładunek: Fort Carson" then guiSetText(wynagrodzenie, "$1800") end if guiGetText(wyladunek) == "Wyładunek: Angel Pine" then guiSetText(wynagrodzenie, "$700") end if guiGetText(wyladunek) == "Wyładunek: Palomino Creek" then guiSetText(wynagrodzenie, "$1000") end if guiGetText(wyladunek) == "Wyładunek: Blubbery" then guiSetText(wynagrodzenie, "$900") end if guiGetText(wyladunek) == "Wyładunek: Doki" then guiSetText(wynagrodzenie, "$100") end if nazwa == "Roadtrain" then triggerServerEvent("cysterna", root) outputChatBox("Do tego rodzaju pojazdu wymagana jest przyczepa. Uważaj! Nie zgub jej.", 0, 255, 0) end end end end addEventHandler("onClientGUIClick", guifinalizuj, asastkise, false) In debugscript "addEventHandler" have expected function at arg 3. Why? Please, help. IDK this... Link to comment
darhal Posted May 14, 2015 Share Posted May 14, 2015 addEventHandler("onClientGUIClick", guifinalizuj, function () if guiGetText(tytul) == "Tytuł: Mleko" then guiSetVisible(oknoprz, false) showCursor(false) exports["notifications"]:showBox("info","Na Twoim radarze zostało umieszczone miejsce rozładunku.") jakafura = getPedOccupiedVehicle(localPlayer) nazwafury = getVehicleName(jakafura) trasa = true if guiGetText(wyladunek) == "Wyładunek: San Fierro" then punkt = createMarker(-2443.31812, 740.89063, 34, "cylinder", 10, 0, 255, 255, 20) blip = createBlip(-2443.31812, 740.89063, 34.01563, 41) end if guiGetText(wyladunek) == "Wyładunek: Los Santos" then guiSetText(wynagrodzenie, "$500") end if guiGetText(wyladunek) == "Wyładunek: Las Venturas" then guiSetText(wynagrodzenie, "$2000") end if guiGetText(wyladunek) == "Wyładunek: Bayside" then guiSetText(wynagrodzenie, "$1700") end if guiGetText(wyladunek) == "Wyładunek: Fort Carson" then guiSetText(wynagrodzenie, "$1800") end if guiGetText(wyladunek) == "Wyładunek: Angel Pine" then guiSetText(wynagrodzenie, "$700") end if guiGetText(wyladunek) == "Wyładunek: Palomino Creek" then guiSetText(wynagrodzenie, "$1000") end if guiGetText(wyladunek) == "Wyładunek: Blubbery" then guiSetText(wynagrodzenie, "$900") end if guiGetText(wyladunek) == "Wyładunek: Doki" then guiSetText(wynagrodzenie, "$100") end if nazwa == "Roadtrain" then triggerServerEvent("cysterna", root) outputChatBox("Do tego rodzaju pojazdu wymagana jest przyczepa. Uważaj! Nie zgub jej.", 0, 255, 0) end end end end , false) Link to comment
Rat32 Posted May 14, 2015 Author Share Posted May 14, 2015 I've thought about it, but I do not know what way debugscript calls for closing parenthesis. "ERROR: Loading script failed: ')" expected to close ( at line 164 (in the up code this is line 1), near end. Link to comment
Rat32 Posted May 14, 2015 Author Share Posted May 14, 2015 I mean, you know, tired by this code, and secondly it is very long. I am afraid that someone will call him. Do you have something else up his sleeve? Link to comment
darhal Posted May 14, 2015 Share Posted May 14, 2015 ok then there is ) missed at line 164 find it and fix it by yourself Link to comment
Rat32 Posted May 14, 2015 Author Share Posted May 14, 2015 Because it is here I am writing you to help me. If you do not know how to fix it, it does not write anything and that's it. Link to comment
darhal Posted May 14, 2015 Share Posted May 14, 2015 (edited) Your code is kinda messy I fix it to see the problem try this addEventHandler("onClientGUIClick", guifinalizuj, function () if guiGetText(tytul) == "Tytuł: Mleko" then guiSetVisible(oknoprz, false) showCursor(false) exports["notifications"]:showBox("info","Na Twoim radarze zostało umieszczone miejsce rozładunku.") jakafura = getPedOccupiedVehicle(localPlayer) nazwafury = getVehicleName(jakafura) trasa = true if guiGetText(wyladunek) == "Wyładunek: San Fierro" then punkt = createMarker(-2443.31812, 740.89063, 34, "cylinder", 10, 0, 255, 255, 20) blip = createBlip(-2443.31812, 740.89063, 34.01563, 41) end if guiGetText(wyladunek) == "Wyładunek: Los Santos" then guiSetText(wynagrodzenie, "$500") end if guiGetText(wyladunek) == "Wyładunek: Las Venturas" then guiSetText(wynagrodzenie, "$2000") end if guiGetText(wyladunek) == "Wyładunek: Bayside" then guiSetText(wynagrodzenie, "$1700") end if guiGetText(wyladunek) == "Wyładunek: Fort Carson" then guiSetText(wynagrodzenie, "$1800") end if guiGetText(wyladunek) == "Wyładunek: Angel Pine" then guiSetText(wynagrodzenie, "$700") end if guiGetText(wyladunek) == "Wyładunek: Palomino Creek" then guiSetText(wynagrodzenie, "$1000") end if guiGetText(wyladunek) == "Wyładunek: Blubbery" then guiSetText(wynagrodzenie, "$900") end if guiGetText(wyladunek) == "Wyładunek: Doki" then guiSetText(wynagrodzenie, "$100") end if nazwa == "Roadtrain" then triggerServerEvent("cysterna", root) outputChatBox("Do tego rodzaju pojazdu wymagana jest przyczepa. Uważaj! Nie zgub jej.", 0, 255, 0) end end end) Edited May 14, 2015 by Guest Link to comment
Walid Posted May 14, 2015 Share Posted May 14, 2015 Because it is here I am writing you to help me. If you do not know how to fix it, it does not write anything and that's it. addEventHandler("onClientGUIClick", guifinalizuj, function () if guiGetText(tytul) == "Tytuł: Mleko" then guiSetVisible(oknoprz, false) showCursor(false) exports["notifications"]:showBox("info","Na Twoim radarze zostało umieszczone miejsce rozładunku.") jakafura = getPedOccupiedVehicle(localPlayer) nazwafury = getVehicleName(jakafura) trasa = true elseif guiGetText(wyladunek) == "Wyładunek: San Fierro" then punkt = createMarker(-2443.31812, 740.89063, 34, "cylinder", 10, 0, 255, 255, 20) blip = createBlip(-2443.31812, 740.89063, 34.01563, 41) elseif guiGetText(wyladunek) == "Wyładunek: Los Santos" then guiSetText(wynagrodzenie, "$500") elseif guiGetText(wyladunek) == "Wyładunek: Las Venturas" then guiSetText(wynagrodzenie, "$2000") elseif guiGetText(wyladunek) == "Wyładunek: Bayside" then guiSetText(wynagrodzenie, "$1700") elseif guiGetText(wyladunek) == "Wyładunek: Fort Carson" then guiSetText(wynagrodzenie, "$1800") elseif guiGetText(wyladunek) == "Wyładunek: Angel Pine" then guiSetText(wynagrodzenie, "$700") elseif guiGetText(wyladunek) == "Wyładunek: Palomino Creek" then guiSetText(wynagrodzenie, "$1000") elseif guiGetText(wyladunek) == "Wyładunek: Blubbery" then guiSetText(wynagrodzenie, "$900") elseif guiGetText(wyladunek) == "Wyładunek: Doki" then guiSetText(wynagrodzenie, "$100") elseif nazwa == "Roadtrain" then triggerServerEvent("cysterna", resourceRoot) outputChatBox("Do tego rodzaju pojazdu wymagana jest przyczepa. Uważaj! Nie zgub jej.", 0, 255, 0) end end ) You need to post full code here Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now