whats wrong in this script???
code
--------------------------------------------------------------------
BOTNAME = "[iThaYaM-Prefix-Security]"
PREFIX = { "[iThaYaM]" ; "[iThaYaM-Server]" }
function Main()
frmHub:RegBot(BOTNAME)
end
function NewUserConnected(curUser)
for check,prefix in PREFIX do
if not strfind(curUser.sName,prefix,1,1) then
curUser:SendPM(BOTNAME,"You were DISCONNECTED by "..BOTNAME.." - Reason: You don't have the right Prefix! PLs change it to [iThaYaM]?Nickname ...and connect again! E.G. [iThaYaM]?Test like this! You can make a Space after the Prefix by pressing ALT button and type 0160 ...If u have any problem Mail to >>> ithayam@hispeed.ch <<< / Your ?--(?`?._.?**..::: iThaYaM-Tamil-Network :::...**?._.???)--?")
curUser:Disconnect()
end
end
end
-----------------------------------------------------------------------
code
---------
This is the Erorr Msg i get:
Syntax Error: invalid constructor syntax;
last token read: `}' at line 2 in string "BOTNAME = "[iThaYaM-Prefix-Security]"
..."
thank you for the helps
pls help me if you can
Vinoth
try this
PREFIX = { "[iThaYaM]" , "[iThaYaM-Server]" }
instead of
PREFIX = { "[iThaYaM]" ; "[iThaYaM-Server]" }