Witam robi? sobi? takiego bota anty reklamowego kt?ry banuje po wpisaniu ip badz czegos zwiazanego z reklam?. I daje tam rozne duperele
I mam 2 problemy. Pierwszy z nich to b??d w DB, attempt to concatenate getPlayerName
linijka 53
[lua]outputChatBox("Gracz: "..getPlayerName(source).."Zosta?/a Zbanowany/a Przez ConsoleBot", getRootElement(), 255, 0, 0)[/lua]
a drugi b??d to taki, ?e zamiast co 2 minuty losowa? teksty z tablicy to losuje mi kij wie sk?d cyfry.
[lua]local teksty = {
{"Co tam u was ?"},
{"Jaka Dzi? Pogoda ?"},
{"Mi?ej zabawy "},
{"Ale fajna nuta na M leci"},
{"Fajnie sie gra tutaj ? "},
{"M?j tw?rca to mistrzuniu"},
{"Uhhh ale gor?co dzi? co nie ?"},
}
setTimer(function()
local los = math.random(1, #teksty)
outputChatBox("#ff99ccConsoleBot: #99004c"..los.."",getRootElement(), 255,255,255,true)
end, 120*1000, 1)
local s1 = "mtasa://"
local s2 = "128.168.593.532"
local s3 = ":25503"
addEventHandler("onPlayerChat",root,function(msg, type)
if type == 0 then
cancelEvent()
if msg == s1 or msg == s2 or msg == s3 then
outputChatBox(" &quo...