Siemanko, zaczynam na nowo przygodę z lua i już jestem pod ścianą... więc tak, narazie chce sobie ogarnąć co i jak więc typowo wrzucam jakiś syf. Wrzuciłem core z PYS 3.0 podajże. Po zalogowaniu próbuje napisać coś na chacie, lecz nic sie na nim nie pojawia. Consola wypluwa coś takiego:
>>s_chats.lua:155: attempt to concatenate a boolean value<<
A linijka kodu wygłąda tak:
[code]addEventHandler('onPlayerChat', root, function(msg, type)
cancelEvent()
if stopChat then
cancelEvent()
outputChatBox('* Chat jest aktualnie wyłączony.', source, 255, 0, 0, true)
return end
if not getElementData(source,"player:sid") then
outputChatBox("* Musisz być zalogowany(a) !", source)
return end
--[[if settings['swearFilter']['enabled'] then
for i, v in pairs(settings['swearFilter']['swears']) do
while msg:lower():find(i:lower(),1,true) do
local start, end_ = msg:lower():find(i:lower(),1,true)
local found = msg:sub(start,end_)
msg = msg:gsub(found,v)
end
end
end--]]
local tick=getTickCount()
if getElementData(source, "mute:player") then
outputChatBox("* Nie możesz komunikować się z innymi graczami - posiadasz wyciszenie.", source)
triggerClientEvent(source, 'createNotif', source, 'Nie możesz komunikować się z innymi graczami - posiadasz wyciszenie.',8,"error")
return
end
if type==0 then
cancelEvent()
--[[if ninjaban(msg) then
cancelEvent()
triggerClientE... |