• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Broadcasting Help!

Massmurdera

New Member
Joined
Jul 24, 2009
Messages
19
Reaction score
0
I need a script that will broadcast every 30 minutes different information like "Goto the website and register on the Forums." and "This server is online 24/7" and other simple information. I have a script but i always get an error after the first broadcast... Im using the server Armonia based off of TFS
Here's the Error:

Code:
[11/08/2009  04:20:59] > Broadcasted message: "Information: Any suggestions or comments about the server, please e-mail me at [email protected]".

[11/08/2009  04:20:59] Lua Script Error: [TalkAction Interface] 
[11/08/2009  04:20:59] in a timer event called from: 
[11/08/2009  04:20:59] data/talkactions/scripts/advertisement.lua:onSay

[11/08/2009  04:20:59] luaAddEvent(). callback parameter should be a function.

Here's the Script:

Code:
function onSay(cid, words, param)
    if getPlayerGroupId(cid) == 0 then
        doPlayerSendTextMessage(cid,21,"You need higher access to do this.")
    elseif getPlayerGroupId(cid) >= 1 then
        broadcastMessage("Information: This server is online 24/7!",21)
        addEvent(saaus,30*60*1000)
    end
    return TRUE
end
function saaus()
    broadcastMessage("Information: Any suggestions or comments about the server, please e-mail me at [email protected]",21)
    addEvent(saaaus,30*60*1000)
end
 
Lua:
function onSay(cid, words, param)
    if getPlayerGroupId(cid) == 0 then
        doPlayerSendTextMessage(cid,21,"You need higher access to do this.")
    elseif getPlayerGroupId(cid) >= 1 then
        broadcastMessage("Information: This server is online 24/7!",21)
        addEvent(saaus,30*60*1000)
    end
    return TRUE
end
function saaus()
    broadcastMessage("Information: Any suggestions or comments about the server, please e-mail me at [email][email protected][/email]",21)
    addEvent(saaus,30*60*1000)
end

There you go :thumbup:.

Regards,
Shawak
 
Back
Top