PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: tamilzone on 09 February, 2004, 17:17:14

Title: Can any one Help me Out???PLS?
Post by: tamilzone on 09 February, 2004, 17:17:14
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
Title:
Post by: c h i l l a on 09 February, 2004, 18:08:22
try this

PREFIX = { "[iThaYaM]" , "[iThaYaM-Server]" }

instead of

PREFIX = { "[iThaYaM]" ; "[iThaYaM-Server]" }