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: opuszczanie
1. Opuszczanie ORG.
Cze?? button nie triggeruje eventu kto? pomo?e ?
C:
 w_m.opusc=function()
    
local coid=getCO()
    if (
not coid) then return end
    w_o
.schowaj()
        
guiSetVisible(w_m.wnd,false)
triggerServerEvent("onCoZwolnienieRequest", localPlayer, coid)
end

C:
addEventHandler("onClientGUIClick", w_o.btn_opuszczanie, w_m.opusc,false)

S:
 addEvent("onCoOpuszczanieRequest", true)
addEventHandler("onCoOpuszczanieRequest",root, function(fid,cid)
    -- 
to do weryfikacja

    
if (not fid or not cid) then return end 
    local query
=string.format("DELETE FROM lss_character_co WHERE character_id=%d AND co_id=%d LIMIT 1", cid, fid)
       --  
outputDebugString(query)
    
exports.DB:zapytanie(query)
    
updatePlayerCoData(cid)
end)

DB3 czyste
Pe?ny kod mog? wys?a? PW