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: unexpected
1. unexpected symbol near 'and'

addEvent
("givePlayerMoney"true)
addEventHandler("givePlayerMoney"resourceRoot, function(m)
if 
tonumber(mthen
  givePlayerMoney
(clientm)
setElementDataEx(client"bankmoney"getElementData(client"bankmoney")+mtrue) and mysql:query_free("UPDATE `characters` SET `bankmoney`=bankmoney+"..m.." WHERE `id`='"..getElementData(client"dbid").."' ")  --------- tutaj jest problem ta linijka
end
end
)

nie rozumiem tego db3 przez co skrypt mi nie chce dzia?a? jakie? and a ja nie wiem co doda?, m?czy?em si? z tym przez 4 h wi?c prosz? was o pomoc
2. loading script failed unexpected symbol near ')'
[lua]bindKey("mouse1", "down", function()
if not getElementData(localPlayer, "gui:listonosz") or getElementData(localPlayer, "gui:listonosz") ~= true then return end
if isMouseIn(404*px, 447*py, 227*px, 38*py) then
if getElementData(localPlayer, "praca") then
exports["np-notyfikacje"]:noti("Posiadasz aktywn? prac?!")
return end
zrobione = 0
triggerServerEvent("create:listonosz", localPlayer)
exports["np-notyfikacje"]:noti("Rozpoczynasz prac? listonosza")
showCursor(false)
setElementData(localPlayer, "gui:listonosz", nil)
setElementData(localPlayer, "praca", "listonosz")
for i,v in ipairs(punktyListonosza) do
local markerList = createMarker(v[1], v[2], v[3]-0.9, "cylinder", 1, 29, 10 ,100)
local blipList = createBlipAttachedTo(markerList, 41)
addEventHandler("onClientMarkerHit", markerList, function(hit)
if hit ~= localPlayer then return end
if isPedInVehicle(localPlayer) then
outputChatBox("Nie mo?esz siedzie? w poje?dzie!", 255, 0, 0) return end
zrobione = zrobione+1
destroyElement(source)
destroyElement(blipList)
exports["np-notyfikacje"]:noti(" wykonano: "..tostring(zrobione).."")
local pieniadz = math.random(10, 200)
...
3. Unexpected symbol near
Mam problem z tym kodem:
[lua]postacieGracza = {}
wybranaPostac = 1

function zobaczPostacie(MySQLConnect, player)
local idgracza = getElementData(player, "Zalogowany")
local sprawdzpostacie = mysql_query(MySQLConnect, "SELECT * FROM Postac WHERE kontoid='" .. idgracza .. "'")
if mysql_num_rows(sprawdzpostacie) > 0 then
local postacieGracza = sprawdzpostacie
local postac = mysql_fetch_assoc(postacieGracza[wybranaPostac])
local postacieGracza[wybranaPostac].imie = postac["Imie"]
local postacieGracza[wybranaPostac].nazwisko = postac["Nazwisko"]
local postacieGracza[wybranaPostac].wiek = postac["Wiek"]
local postacieGracza[wybranaPostac].kasa = postac["Kasa"]
local postacieGracza[wybranaPostac].skin = postac["Skin"]
outputChatBox("Twoje dane: " .. postacieGracza[wybranaPostac].imie .. " " .. postacieGracza[wybranaPostac].nazwisko ..
" " .. postacieGracza[wybranaPostac].wiek .. " " .. postacieGracza[wybranaPostac].kasa .. " " .. postacieGracza[wybranaPostac].skin, player)
wybranaPostac = wybranaPostac + 1
outputChatBox("Twoje dane: " .. postacieGracza[wybranaPostac].imie .. " " .. postacieGracza[wybranaPostac].nazwisko ..
" " .. postacieGracza[wybranaPostac].wiek .. " " .. postacieGracza[wybranaPostac].kasa .. " " .. postacieGracza[wybranaPostac...