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: santown
1. Nie dzialaja notyfikacje (GM SanTown i OGRPG)
Siema mam problem otoz podpialem notyfikacje z gm SanTown pod OGRPG przy PM i Przelewach. Wszystko ladnie lecz w debugu pokazuje

[code]st_notyfikacje/alerts.lua - Wyst?pi? nieznany b??d, linia: 11.[/code]

Jedenasta linijka w skrypcie na notyfikacje to [code]if not player or not image or not text then[/code]


[code]function onPrivateMessage(plr, cmd, target, ...)
if not (getElementData(plr, "player:logged") == true) then return end
if not target or not {...} then
exports['grpg-notyfikacje']:DodajNoty(client, 'error', 'Nie uda?o si? wys?a? wiadomo?ci. U?yj /pm <nick/ID> <tre??>')
return
end
if getElementData(plr, "mute:player") then
exports['grpg-notyfikacje']:DodajNoty(client, 'error', 'Jeste? wyciszony!')
return
end
if ninjaban(...) then
triggerClientEvent(root, "admin:rendering", root, "* "..getPlayerName(plr):gsub("#%x%x%x%x%x%x","").."("..getElementData(plr,"id")..") zosta?(a) wyrzucony(a) przez system. Powod: Reklama")
kickPlayer (plr, "System:Reklama")
return end
local text=table.concat({...}, ' ')
local target=findPlayer(plr, target)
if not target then
exports['grpg-notyfikacje']:DodajNoty(client, 'error', 'Nie znaleziono podanego gracza.')
--exports.rpg_noti:createNotification(plr, "error", "Nie znaleziono podanego gracza.")
return
end
if not ...