witam robi mi si? p?tla w mysql zapisywaniu nie wiem jak to rozwi?za? je?li jest tyle os?b na duty tyle razy zapisuje si? text w mysql a nie 1 rekord kod : [lua]
addCommandHandler('e', function(plr,cmd, ...)
local name = getPlayerName(plr):gsub("#%x%x%x%x%x%x","")
if not getElementData(plr,"admin") then return end
if getElementData(plr,"admin") then
local ranga = test
if not ... then
local x = getElementData(plr,"ekipaoff")
if x == false then
exports["noti"]:noti("Wy??czy?e? czat ekipy",plr)
setElementData(plr,"ekipaoff",true)
end
if x == true then
exports["noti"]:noti("W??czy?e? czat ekipy",plr)
setElementData(plr,"ekipaoff",false)
end
return end
if ... then
if getElementData(plr,"ekipaoff") == true then exports["noti"]:noti("Posiadasz wy??czone wiadomo?ci tego czatu, nie mo?esz na nim pisa?!", plr) return end
local msg=table.concat({...}, " ")
if (getAdmin(plr,4)) then
ranga = "CEO"
end
if (getAdmin(plr,3)) then
ranga = "Starszy Administrator"
end
if (getAdmin(plr,2)) then
ranga = "Administrator"
end
if (getAdmin(plr,1)) then
ranga = "Support"
en... |