Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-07-31, 11:38


BoomEq







Wiek: 35
Na forum: 3523 dni
Posty: 101
Nick w MP: BoomEqqq

Piwa: 20

Respekt: 70

db3 :
Kod:

s.lua:94: attempt to get length of local 'q' (a boolean value)


s:

function policja(plr,cmd,...)
    uid=getElementData(plr,'player:uid')
    if not uid then return end
    if getElementData(plr,"player:duty"then
        return outputChatBox("Nie mo?esz tego zrobi?!",plr,255,0,0)
    end
    local opis table.concat({ ... }, " ")
    if not opis or (string.len(opis)) > 255 or (string.len(opis)) < 1 then outputChatBox("D?ugo?? opisu zdarzenia nie mo?e mie? mniej ni? 1 znak?w / wi?cej ni? 255 znak?w!"plr25500) return end
    a=(getElementData(plr,"antySpamzgloszenia") or 0)+60000
    b=getTickCount()
    if a>b then
        return outputChatBox("Nie tak szybko! Poczekaj chwile z tymi zawiadomieniami (Poczekaj: "..math.floor((a-b)/1000).."s)",plr,255,0,0)
    end
    x,y,z=getElementPosition(plr)
    miejsce=getZoneName(x,y,z)
    dokladne=getZoneName(x,y,z,true)
    lokalizacja=dokladne..", "..miejsce
    exports["ogrpg-db"]:dbSet("insert into Zawiadomienia (data,uid,serial,miejsce,pozycja,typ,opis,nick) values(NOW(),?,?,?,?,?,?,?)",uid,getPlayerSerial(plr),lokalizacja,toJSON({x,y,z},true),"LSPD",string.gsub(opis'#%x%x%x%x%x%x'''),getPlayerName(plr):gsub("#%x%x%x%x%x%x"""))
    id=exports["ogrpg-db"]:dbGet("SELECT MAX(ID) as id FROM Zawiadomienia")[1].id
    for i,v in ipairs(getElementsByType("player")) do
        if getElementData(v,"player:duty")=="LSPD" then
            outputChatBox(getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." wezwa? Policj?, jed? do "..dokladne.." ("..miejsce..") (ID: "..tostring(id)..")"v,0,0,255)
            triggerClientEvent(v,"ZAWIADOMIENIA:LSPD:pokaz",resourceRoot,x,y,z,id)
        end
    end
    setElementData(plr,"antySpamzgloszenia",getTickCount())
    outputChatBox("Wezwa?e? policj?! Wkr?tce si? tu zjawi jaki? patrol!",plr,0,255,0)
end
addCommandHandler("997",policja)

function strazpozarna(plr,cmd,...)
    uid=getElementData(plr,'player:uid')
    if not uid then return end
    if getElementData(plr,"player:duty"then
        return outputChatBox("Nie mo?esz tego zrobi?!",plr,255,0,0)
    end
    local opis table.concat({ ... }, " ")
    if not opis or (string.len(opis)) > 255 or (string.len(opis)) < 10 then outputChatBox("D?ugo?? opisu zdarzenia nie mo?e mie? mniej ni? 10 znak?w / wi?cej ni? 255 znak?w!"plr25500) return end
    a=(getElementData(plr,"antySpamzgloszenia") or 0)+60000
    b=getTickCount()
    if a>b then
        return outputChatBox("Nie tak szybko! Poczekaj chwile z tymi zawiadomieniami (Poczekaj: "..math.floor((a-b)/1000).."s)",plr,255,0,0)
    end
    x,y,z=getElementPosition(plr)
    miejsce=getZoneName(x,y,z)
    dokladne=getZoneName(x,y,z,true)
    lokalizacja=dokladne..", "..miejsce
    exports["ogrpg-db"]:dbSet("insert into Zawiadomienia (data,uid,serial,miejsce,pozycja,typ,opis,nick) values(NOW(),?,?,?,?,?,?,?)",uid,getPlayerSerial(plr),lokalizacja,toJSON({x,y,z},true),"LVFD",string.gsub(opis'#%x%x%x%x%x%x'''),getPlayerName(plr):gsub("#%x%x%x%x%x%x"""))
    id=exports["ogrpg-db"]:dbGet("SELECT MAX(ID) as id FROM Zawiadomienia")[1].id
    for i,v in ipairs(getElementsByType("player")) do
        if getElementData(v,"player:duty")=="LVFD" then
            outputChatBox(getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." wezwa? Stra? po?arn?, jed? do "..dokladne.." ("..miejsce..") (ID: "..tostring(id)..")"v,0,255,0)
            triggerClientEvent(v,"ZAWIADOMIENIA:LVFD:pokaz",resourceRoot,x,y,z,id)
        end
    end
    setElementData(plr,"antySpamzgloszenia",getTickCount())
    outputChatBox("Wezwa?e? stra? po?arn?! Wkr?tce si? tu kto? pojawi!",plr,0,255,0)
end
addCommandHandler("998",strazpozarna)

function pogotowie(plr,cmd,...)
    uid=getElementData(plr,'player:uid')
    if not uid then return end
    if getElementData(plr,"player:duty"then
        return outputChatBox("Nie mo?esz tego zrobi?!",plr,255,0,0)
    end
    local opis table.concat({ ... }, " ")
    if not opis or (string.len(opis)) > 255 or (string.len(opis)) < 10 then outputChatBox("D?ugo?? opisu zdarzenia nie mo?e mie? mniej ni? 10 znak?w / wi?cej ni? 255 znak?w!"plr25500) return end
    a=(getElementData(plr,"antySpamzgloszenia") or 0)+60000
    b=getTickCount()
    if a>b then
        return outputChatBox("Nie tak szybko! Poczekaj chwile z tymi zawiadomieniami (Poczekaj: "..math.floor((a-b)/1000).."s)",plr,255,0,0)
    end
    x,y,z=getElementPosition(plr)
    miejsce=getZoneName(x,y,z)
    dokladne=getZoneName(x,y,z,true)
    lokalizacja=dokladne..", "..miejsce
    exports["ogrpg-db"]:dbSet("insert into Zawiadomienia (data,uid,serial,miejsce,pozycja,typ,opis,nick) values(NOW(),?,?,?,?,?,?,?)",uid,getPlayerSerial(plr),lokalizacja,toJSON({x,y,z},true),"SAMD",string.gsub(opis'#%x%x%x%x%x%x'''),getPlayerName(plr):gsub("#%x%x%x%x%x%x"""))
    id=exports["ogrpg-db"]:dbGet("SELECT MAX(ID) as id FROM Zawiadomienia")[1].id
    for i,v in ipairs(getElementsByType("player")) do
        if getElementData(v,"player:duty")=="LVMD" then
            outputChatBox(getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." wezwa? Pogotowie, jed? do "..dokladne.." ("..miejsce..") (ID: "..tostring(id)..")"v,255,0,0)
            triggerClientEvent(v,"ZAWIADOMIENIA:LVMD:pokaz",resourceRoot,x,y,z,id)
        end
    end
    setElementData(plr,"antySpamzgloszenia",getTickCount())
    outputChatBox("Wezwa?e? pogotowie! Wkr?tce si? tu kto? pojawi!",plr,0,255,0)
end
addCommandHandler("999",pogotowie)

function zgloszenia(plr)
if not getElementData(plr,"player:duty"then return end
local q=exports["ogrpg-db"]:dbSet("select * from Zawiadomienia where typ = ? and (TIMEDIFF(now(),data)/60) < 15"getElementData(plr,"player:duty"))
if #q < 1 then outputChatBox("Do twojej frakcji nie wys?ano ?adnego zg?oszenia w ci?gu 15 minut!", plr, 255, 0, 0) return end
triggerClientEvent(plr"ZAWIADOMIENIA:SHOWLIST"plrqgetElementData(plr"player:duty"))
end
addCommandHandler("zgloszenia"zgloszenia)


function taxi(plr)
    uid=getElementData(plr,'player:uid')
    if not uid then return end
    if getElementData(plr,"player:duty"then
        return outputChatBox("Nie mo?esz tego zrobi?!",plr,255,0,0)
    end
    a=(getElementData(plr,"antySpamzgloszenia") or 0)+60000
    b=getTickCount()
    if a>b then
        return outputChatBox("Nie tak szybko! Poczekaj chwile z tymi zawiadomieniami (Poczekaj: "..math.floor((a-b)/1000).."s)",plr,255,0,0)
    end
    x,y,z=getElementPosition(plr)
    miejsce=getZoneName(x,y,z)
    dokladne=getZoneName(x,y,z,true)
    exports["ogrpg-db"]:dbSet("insert into Zawiadomienia values(null,NOW(),?,?,?,?,?,0,0)",uid,getPlayerSerial(plr),miejsce,toJSON({x,y,z},true),"TAXI")
    id=exports["ogrpg-db"]:dbGet("SELECT MAX(ID) as id FROM Zawiadomienia")[1].id
    for i,v in ipairs(getElementsByType("player")) do
        if getElementData(v,"player:duty")=="TAXI" then
            outputChatBox(getPlayerName(plr):gsub("#%x%x%x%x%x%x","").." wezwa? pomoc drogow?, jed? do "..dokladne.." ("..miejsce.."). (ID: "..tostring(id)..")"v,255,64,0)
            triggerClientEvent(v,"ZAWIADOMIENIA:TAXI:pokaz",resourceRoot,x,y,z,id)
        end
    end
    setElementData(plr,"antySpamzgloszenia",getTickCount())
    outputChatBox("Wezwa?e? TAXI! Wkr?tce si? tu kto? pojawi!",plr,255,64,0)
end
addCommandHandler("taxi",taxi)

iloscKasy={
["LSPD"]=100,
["LVFD"]=100,
["LVMD"]=100,
["TAXI"]=100,
}
function odebranoZawiadomienie(id)
    co=getElementData(client,"player:duty")
    ilosckasy=iloscKasy[co]
    givePlayerMoney(client,ilosckasy)
    outputChatBox("Otrzyma?e? "..ilosckasy.." PLN za odebranie zg?oszenia!",client,0,255,0)
    uid=getElementData(client,'player:uid')
    exports["ogrpg-db"]:dbSet("update Zawiadomienia set odebral=?,odebral_data=now() where ID=?",uid,id)
    x,y,z=getElementPosition(client)
    miejsce=getZoneName(x,y,z)
    dokladne=getZoneName(x,y,z,true)
    tekst=getPlayerName(client):gsub("#%x%x%x%x%x%x","").." dojecha? na miejsce ( "..dokladne..", "..miejsce.." ) zg?oszenia ID: "..id
    for i,v in ipairs(getElementsByType("player")) do
        if getElementData(v,"player:duty")==co then
            outputChatBox(tekst,v,0,255,0)
            triggerClientEvent(v,"ZAWIADOMIENIA:LSPD:usun",resourceRoot,id)
        end
    end
end
addEvent("ZAWIADOMIENIA:Odebrane",true)
addEventHandler("ZAWIADOMIENIA:Odebrane",resourceRoot,odebranoZawiadomienie)

function deleteZawiadomienie(id)
exports["ogrpg-db"]:dbSet("delete from Zawiadomienia where id=?"id)
end
addEvent("ZAWIADOMIENIA:deletedbid",true)
addEventHandler("ZAWIADOMIENIA:deletedbid",root,deleteZawiadomienie)

function odpowiedzZawiadomienie(odpowiadajacy, ...)
local text table.concat({ ... }, " ")
outputChatBox("Odpowied? od gracza "..getPlayerName(odpowiadajacy):gsub("#%x%x%x%x%x%x""").." ("..odpowiadajacy:getData("player:duty").."): "..text..""client02550)
outputChatBox("Odpowied? do gracza "..getPlayerName(client):gsub("#%x%x%x%x%x%x""")..": "..text..""odpowiadajacy02550)
end
addEvent("ZAWIADOMIENIA:odp",true)
addEventHandler("ZAWIADOMIENIA:odp",root,odpowiedzZawiadomienie)


94 linijka:

 if #q < 1 then outputChatBox("Do twojej frakcji nie wys?ano ?adnego zg?oszenia w ci?gu 15 minut!", plr, 255, 0, 0) return end 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-31, 12:19


Query

SyndicateMTA






Wiek: 24
Na forum: 3072 dni
Posty: 319
Nick w MP: Query

Piwa: 5257

Respekt: 141
Respekt: 141

spr?buj tak:

if #q < 15 then outputChatBox("Do twojej frakcji nie wys?ano ?adnego zg?oszenia w ci?gu 15 minut!", plr, 255, 0, 0) return end


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-31, 12:29


Adaskokieblasko







Wiek: 23
Na forum: 2954 dni
Posty: 101

Piwa: 18

Respekt: 100
Respekt: 100

Spr?buj zamieni? linijk? wy?ej na t?
 local q exports["ogrpg-db"]:dbSet("select * from Zawiadomienia where typ = ? and (TIMEDIFF(now(),data)/60) < 15"getElementData(plr,"player:duty")) 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-31, 15:12


BoomEq







Wiek: 35
Na forum: 3523 dni
Posty: 101
Nick w MP: BoomEqqq

Piwa: 20

Respekt: 70

Teraz takie cos wyskakuje :
Kod:

c.lua:198: bad argument #1 to ?pairs' (table expected, got boolean)


client :

local screenWscreenH guiGetScreenSize()

mojeW,mojeH 1366768
sW,sH guiGetScreenSize()
w= (sW/mojeW), (sH/mojeH)
sx,sy=guiGetScreenSize()

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
    if not isCursorShowing() then return end
    cx,cy=getCursorPosition()
    cx,cy=cx*sx,cy*sy
    if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
        return true,cx,cy
    else
        return false
    end
end

cele={}
function nowyCel(x,y,z,id,frakcja,blip)
    col=createColSphere(x,y,z,25)
    setElementData(col,"zawiadomienie",true,false)
    setElementData(col,"frakcja",frakcja,false)
    setElementData(col,"id",id,false)    
    blip=createBlipAttachedTo (col,blip)
    cele[id]={col,blip}
end
addEvent("ZAWIADOMIENIA:LSPD:pokaz"true)
addEventHandler("ZAWIADOMIENIA:LSPD:pokaz"resourceRoot, function(x,y,z,id)
    nowyCel(x,y,z,id,"LSPD",41)
end)
addEvent("ZAWIADOMIENIA:LSPD:usun"true)
addEventHandler("ZAWIADOMIENIA:LSPD:usun"resourceRoot, function(id)
    destroyElement(cele[id][1])
    destroyElement(cele[id][2])
    cele[id]=nil
end)

addEvent("ZAWIADOMIENIA:LVFD:pokaz"true)
addEventHandler("ZAWIADOMIENIA:LVFD:pokaz"resourceRoot, function(x,y,z,id)
    nowyCel(x,y,z,id,"LVFD",41)
end)
addEvent("ZAWIADOMIENIA:LVFD:usun"true)
addEventHandler("ZAWIADOMIENIA:LVFD:usun"resourceRoot, function(id)
    destroyElement(cele[id][1])
    destroyElement(cele[id][2])
    cele[id]=nil
end)

addEvent("ZAWIADOMIENIA:TAXI:pokaz"true)
addEventHandler("ZAWIADOMIENIA:TAXI:pokaz"resourceRoot, function(x,y,z,id)
    nowyCel(x,y,z,id,"TAXI",41)
end)
addEvent("ZAWIADOMIENIA:TAXI:usun"true)
addEventHandler("ZAWIADOMIENIA:TAXI:usun"resourceRoot, function(id)
    destroyElement(cele[id][1])
    destroyElement(cele[id][2])
    cele[id]=nil
end)

addEvent("ZAWIADOMIENIA:LVMD:pokaz"true)
addEventHandler("ZAWIADOMIENIA:LVMD:pokaz"resourceRoot, function(x,y,z,id)
    nowyCel(x,y,z,id,"LVMD",41)
end)
addEvent("ZAWIADOMIENIA:LVMD:usun"true)
addEventHandler("ZAWIADOMIENIA:LVMD:usun"resourceRoot, function(id)
    destroyElement(cele[id][1])
    destroyElement(cele[id][2])
    cele[id]=nil
end)

function render()
if not frakcja then return end
    dxDrawRectangle(326*w245*h715*w279*htocolor(000170), false)
    dxDrawText("Lista zg?osze?:\nFrakcja: "..frakcja..""325*w2511041*w284tocolor(255255255255), 1.00dxfont0_1"center""bottom"falsefalsefalsefalsefalse)
    dxDrawLine((334 1)*w, (475 1)*h, (334 1)*w514*htocolor(545755200), 1false)
    dxDrawLine(500*w, (475 1)*h, (334 1)*w, (475 1)*htocolor(545755200), 1false)
    dxDrawLine((334 1)*w514*h500*w514*htocolor(545755200), 1false)
    dxDrawLine(500*w514*h500*w, (475 1)*htocolor(545755200), 1false)
    dxDrawRectangle(334*w475*h166*w39*htocolor(000200), false)
    dxDrawLine((600 1)*w, (475 1)*h, (600 1)*w514*htocolor(545755200), 1false)
    dxDrawLine(766*w, (475 1)*h, (600 1)*w, (475 1)*htocolor(545755200), 1false)
    dxDrawLine((600 1)*w514*h766*w514*htocolor(545755200), 1false)
    dxDrawLine(766*w514*h766*w, (475 1)*htocolor(545755200), 1false)
    dxDrawRectangle(600*w475*h166*w39*htocolor(000200), false)
    dxDrawLine((865 1)*w, (475 1)*h, (865 1)*w514*htocolor(545755200), 1false)
    dxDrawLine(1031*w, (475 1)*h, (865 1)*w, (475 1)*htocolor(545755200), 1false)
    dxDrawLine((865 1)*w514*h1031*w514*htocolor(545755200), 1false)
    dxDrawLine(1031*w514*h1031*w, (475 1)*htocolor(545755200), 1false)
    dxDrawRectangle(865*w475*h166*w39*htocolor(000200), false)
    if isMouseIn(334*w475*h166*w39*hthen
    dxDrawRectangle(334*w514*h166*w2*htocolor(36175178170), false)
    else
    dxDrawRectangle(334*w514*h166*w2*htocolor(255255255170), false)
    end
    if isMouseIn(600*w475*h166*w39*hthen
    dxDrawRectangle(600*w514*h166*w2*htocolor(36175178170), false)
    else
    dxDrawRectangle(600*w514*h166*w2*htocolor(255255255170), false)
    end
    if isMouseIn(865*w475*h166*w39*hthen
    dxDrawRectangle(865*w514*h166*w2*htocolor(36175178170), false)
    else
    dxDrawRectangle(865*w514*h166*w2*htocolor(255255255170), false)
    end
    dxDrawText("Wy?lij odpowied?"334*w475*h500*w514*htocolor(255255255255), 1.00dxfont0_1"center""center"falsefalsefalsefalsefalse)
    dxDrawText("Usu? zg?oszenie"600*w475*h766*w514*htocolor(255255255255), 1.00dxfont0_1"center""center"falsefalsefalsefalsefalse)
    dxDrawText("Zamknij"865*w475*h1031*w514*htocolor(255255255255), 1.00dxfont0_1"center""center"falsefalsefalsefalsefalse)
    --
    if editing then
    dxDrawRectangle(556*w94*h254*w107*htocolor(000200), false)
    dxDrawRectangle(556*w94*h254*w16*htocolor(36175178200), true)
    dxDrawText("Wy?lij odpowied?"556*w94*h810*w110*htocolor(255255255255), 1.00dxfont0_1"center""center"falsefalsetruefalsefalse)
    dxDrawRectangle(560*w171*h80*w25*htocolor(000200), true)
    dxDrawText("Zatwierd?"560*w173*h640*w191*htocolor(255255255255), 1.00dxfont0_1"center""center"falsefalsetruefalsefalse)
    dxDrawRectangle(726*w171*h80*w25*htocolor(000200), true)
    dxDrawText("Anuluj"726*w173*h806*w191*htocolor(255255255255), 1.00dxfont0_1"center""center"falsefalsetruefalsefalse)
    dxDrawText("Odpowied?:"560*w115*h711*w135*htocolor(255255255255), 1.00dxfont0_1"left""center"falsefalsetruefalsefalse)
    end
end

function getPlayerFromUID(uid)
for i,v in ipairs(getElementsByType("player")) do
if v:getData("player:uid") == uid then
return v
end
end
end

function click(btn,state)
    if btn=="left" and state=="down" then
        if isMouseIn(865*w475*h166*w39*hthen
            removeEventHandler("onClientRender"rootrender)
            removeEventHandler("onClientClick"rootclick)
            gridlist:destroy()
            dxfont0_1=nil
            showCursor(false)
        elseif isMouseIn(600*w475*h166*w39*hthen
            local selectedRow=guiGridListGetSelectedItem(gridlist)
            if not selectedRow or selectedRow 0 then return end
            local dbid=guiGridListGetItemText(gridlistselectedRow5)
            guiGridListRemoveRow(gridlistselectedRow)
            triggerServerEvent("ZAWIADOMIENIA:deletedbid"localPlayerdbid)
            outputChatBox("Usuni?to zg?oszenie UID: "..dbid..""02550)
        elseif isMouseIn(334*w475*h166*w39*hthen
            if not isElement(editingguithen
            local selectedRow=guiGridListGetSelectedItem(gridlist)
            if not selectedRow or selectedRow 0 then return end
            local uid=guiGridListGetItemText(gridlistselectedRow6)
            if getPlayerFromUID(tonumber(uid)) then
            editinggui guiCreateEdit(560*w140*h216*w21*h""false)
            editing=true
            else
            outputChatBox("Ten gracz opu?ci? serwer!"255,0,0)
            return
            end
            end
        elseif isMouseIn(560*w171*h80*w25*h) and editing then
            local text=guiGetText(editinggui)
            if string.len(text) < 1 then return end
            local selectedRow=guiGridListGetSelectedItem(gridlist)
            if not selectedRow or selectedRow 0 then return end
            local uid=guiGridListGetItemText(gridlistselectedRow6)
            if getPlayerFromUID(tonumber(uid)) then
            triggerServerEvent("ZAWIADOMIENIA:odp"getPlayerFromUID(tonumber(uid)), localPlayertext)
            editing=false
            editinggui:destroy()
            else
                outputChatBox("Ten gracz opu?ci? serwer!"255,0,0)
                editing=false
                editinggui:destroy()
                return
            end
        elseif isMouseIn(726*w171*h80*w25*h) and editing then
            editing=false
            editinggui:destroy()
        end
    end
end


addEvent("ZAWIADOMIENIA:SHOWLIST"true)
addEventHandler("ZAWIADOMIENIA:SHOWLIST"localPlayer, function(q,duty)
    frakcja=duty
    if not isElement(gridlistthen
    gridlist guiCreateGridList(332*w288*h703*w179*hfalse)
    guiGridListAddColumn(gridlist"Zg?aszaj?cy:"0.3)
    guiGridListAddColumn(gridlist"Opis zdarzenia:"0.2)
    guiGridListAddColumn(gridlist"Data:"0.2)
    guiGridListAddColumn(gridlist"Lokalizacja:"0.2)
    guiGridListAddColumn(gridlist"DBID:"0.1)
    guiGridListAddColumn(gridlist"UID:"0)
    dxfont0_1 dxCreateFont(":PanelLogowanie/font/1.ttf"10)
    addEventHandler("onClientRender"rootrender)
    addEventHandler("onClientClick"rootclick)
    editing=false
    showCursor(true)
    for i,v in ipairs(q) do
        local row=guiGridListAddRow(gridlist)
        if getPlayerFromUID(v["uid"]) then
        guiGridListSetItemText(gridlistrow1v["nick"].." - ID: ("..getPlayerFromUID(v["uid"]):getData("id")..")"falsefalse)
        else
        guiGridListSetItemText(gridlistrow1v["nick"], falsefalse)
        end
        if getPlayerFromUID(v["uid"]) then
        guiGridListSetItemColor(gridlistrow102550)
        else
        guiGridListSetItemColor(gridlistrow125500)
        end
        guiGridListSetItemText(gridlistrow2v["opis"], falsefalse)
        guiGridListSetItemText(gridlistrow3v["data"], falsefalse)
        guiGridListSetItemText(gridlistrow4v["miejsce"], falsefalse)
        guiGridListSetItemText(gridlistrow5v["ID"], falsefalse)
        guiGridListSetItemText(gridlistrow6v["uid"], falsefalse)
    end
    end
end)


function onClientColShapeHit(theElement,matchingDimension)
    if (theElement==localPlayerthen
        if getElementData(source,"frakcja")==getElementData(localPlayer,"player:duty"then
            id=getElementData(source,"id")
            destroyElement(cele[id][1])
            destroyElement(cele[id][2])
            triggerServerEvent("ZAWIADOMIENIA:Odebrane",getRootElement(),id)
        end
    end
end
addEventHandler("onClientColShapeHit",resourceRoot,onClientColShapeHit)


linijka 198 :

     for i,v in ipairs(q) do 


[ Dodano: 2018-08-02, 13:58 ]
@ref

Postaw piwo autorowi tego posta
 

 
Tagi: zawiadomienia
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Zawiadomienia Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku