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: reportó
1. Usuwanie reportó
Prosz? o pomoc poniewa? nie mog? usuwac report?w zrobi?em ju? zeby sie wyswietla?y na ekranie lecz nie mog? zrobi? usuwania


function cmd_cl(plr,cmd,id,...)
  if (
not idthen
    outputChatBox
("U?yj: /cl <id/nick> <powod>"plr)
    return
  
end


  local powod
=table.concat(arg" ")
  if (
string.len(powod)<2then
    outputChatBox
("U?yj: /cl <id/nick> <powod>"plr)
    return
  
end

  local target
=exports["czaty"]:findPlayer(plr,id)
  
local opis="?"
  
if (targetthen
    id
=getElementData(target,"id")
    
opis=getPlayerName(target)
  
end

  reportView
(tonumber(id))
  
local supportLogin=getElementData(plr"admin:addText")
  
msgToSupport(supportLogin .. " usun??/??a raport na " .. opis .. "/".. id .. ": " .. powod)
end
addCommandHandler
("cl"cmd_clfalsefalse)


db3
Kod:

[2017-03-06 14] ERROR: [Administracja]/admins-pol/reports.lua:49: attempt to call global 'reportView' (a nil value)