• 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!

AutoCleaning command help!

BugaS

Donżuan
Joined
Mar 12, 2009
Messages
1,219
Reaction score
9
Location
NYC
Hello!


I need help with my newbie script:


Code:
--Script is made by master spoking--
local message1 = text
local message2 = text -- Edit text to whatever you wanna <span class="highlight">broadcast</span>
local message3 = text
local time = 50 --Time in minutes, in this case 5 minutes.
-----------------------------------
function onSay(cid, words, param)
if getPlayerGroupId(cid) == -3 then
doPlayerSendTextMessage(cid,21,"You need higher access to do this.")
elseif getPlayerGroupId(cid) >= 1 then
function saaaaus()
docleanmap()
	addEvent(saaaaaus,time*60*1000)
end
return TRUE
end
 
function saaaaus()
docleanmap()
	addEvent(saaaaaus,time*60*1000)
end
 
function saaaaus()
docleanmap()
	addEvent(saaaaaus,time*60*1000)
end
 
function saaaaus()
docleanmap()
	addEvent(saaaaaus,time*60*1000)
end

I made it on my autobroadcast script on tfs 0.2.1. Help mi with it cause i've got this error when i want reload it:

Code:
[12/06/2009  16:55:21] Warning: [Event::loadScript] Can not load script. data/talkactions/scripts/clean.lua
[12/06/2009  16:55:21] data/talkactions/scripts/clean.lua:31: 'end' expected (to close 'function' at line 7) near '<eof>'

Help! :o
 
Back
Top