UPDATE `pystories_factions` SET `faction` = 'safd' WHERE `pystories_factions`.`faction` = 'SAFD' AND `pystories_factions`.`uid` = 1 AND `pystories_factions`.`actived` = '2022-08-07' AND `pystories_factions`.`rank` = 11 AND `pystories_factions`.`nick` = 'Beton' LIMIT 1;
UPDATE `pystories_factions` SET `faction` = 'safd' WHERE `pystories_factions`.`faction` = 'SAFD' AND `pystories_factions`.`uid` = 1 AND `pystories_factions`.`actived` = '2022-08-07' AND `pystories_factions`.`rank` = 11 AND `pystories_factions`.`nick` = 'Beton' LIMIT 1;
musisz zmieni? nazwe zamiast uid ma by? sid wtedy b?dzie dzia?a? poprawnie
local marker=createMarker(-1602.06, 775.84, 6.83, "cylinder", 1.2, 0,128,255,75)
addEventHandler("onMarkerHit", marker, function(el,md)
local sid = getElementData(el,"player:sid")
local result=exports["pystories-db"]:dbGet("SELECT * FROM pystories_factions WHERE sid=?", sid)
if result and #result > 0 then
if Frakcje[result[0].code] then
if getElementData(el,"player:workinjob") and getElementData(el,"player:workinjob") >= 1 then
local money = (Frakcje[result[1].code] * getElementData(el,"player:workinjob"))
outputChatBox("?“?#ffffff Otrzymujesz "..money.." PLN za przepracowanych "..getElementData(el,"player:workinjob").." minut (Pieni?…dze trafi?‚y do bankomatu)!", el, 0, 144, 255, true)
exports["DB2"]:zapytanie("UPDATE pystories_users SET bank_money=bank_money+"..(tonumber(money) or 0).." WHERE id="..tonumber(sid).." LIMIT 1")
setElementData(el,"player:workinjob",0)
else
outputChatBox("?“?#ffffff Nie masz nic do odebrania!", el, 255, 0, 0, true)
end
else
outputChatBox("?“?#ffffff Nie jeste?› w frakcji, ktĂłra moĹĽe odbiera?‡ wyp?‚aty!", el, 255, 0, 0, true)
end
else
outputChatBox("?“?#ffffff Nie naleĹĽysz do ĹĽadnej frakcji!", el, 255, 0, 0, true)
end
end)
local marker=createMarker(-1602.06, 775.84, 6.83, "cylinder", 1.2, 0,128,255,75)
addEventHandler("onMarkerHit", marker, function(el,md)
local sid = getElementData(el,"player:sid")
local result=exports["pystories-db"]:dbGet("SELECT * FROM pystories_factions WHERE sid=?", sid)
if result and #result > 0 then
if Frakcje[result[0].code] then
if getElementData(el,"player:workinjob") and getElementData(el,"player:workinjob") >= 1 then
local money = (Frakcje[result[1].code] * getElementData(el,"player:workinjob"))
outputChatBox("?“?#ffffff Otrzymujesz "..money.." PLN za przepracowanych "..getElementData(el,"player:workinjob").." minut (Pieni?…dze trafi?‚y do bankomatu)!", el, 0, 144, 255, true)
exports["DB2"]:zapytanie("UPDATE pystories_users SET bank_money=bank_money+"..(tonumber(money) or 0).." WHERE id="..tonumber(sid).." LIMIT 1")
setElementData(el,"player:workinjob",0)
else
outputChatBox("?“?#ffffff Nie masz nic do odebrania!", el, 255, 0, 0, true)
end
else
outputChatBox("?“?#ffffff Nie jeste?› w frakcji, ktĂłra moĹĽe odbiera?‡ wyp?‚aty!", el, 255, 0, 0, true)
end
else
outputChatBox("?“?#ffffff Nie naleĹĽysz do ĹĽadnej frakcji!", el, 255, 0, 0, true)
end
end)
wskaz mi 14 linijke, dodaj mnie na discordzie Black.#8507 (tutaj szybciej sie odzywam niz tutaj na forum)
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