Hello!
I need help with my newbie script:
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:
Help!
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!