PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: yoonohoo on 24 May, 2005, 03:31:34

Title: Little error
Post by: yoonohoo on 24 May, 2005, 03:31:34
Can some1 help me? It looks pretty easy if you know how! But then again...

From this:
[User:SendData("----------- "..arg.." is from "..C.." and have CountryCode ["..CC.."]" "----------- SearchTime: "..string.format("%3.2f",(os.clock()-T)).." sec."..) return 1
      end;


I get this error:
151: `)' expected (to close `(' at line 150) near `"----------- SearchTime: "'

Thanks
Title:
Post by: bastya_elvtars on 24 May, 2005, 03:33:35
From ..) before return 1 remove ..

:D

But really!
Title:
Post by: yoonohoo on 24 May, 2005, 03:42:01
Removed the last .. but still have the same error

151: `)' expected (to close `(' at line 150) near `"----------- SearchTime: "'
Title:
Post by: bastya_elvtars on 24 May, 2005, 04:02:07
User:SendData("----------- "..arg.." is from "..C.." and have CountryCode ["..CC.."] ----------- SearchTime: "..string.format("%3.2f",(os.clock()-T)).." sec.") return 1
end;
Title:
Post by: yoonohoo on 24 May, 2005, 04:08:53
Is this also correct?
User:SendData(" "..arg.." is from "..C.." and have CountryCode " ..CC.. "----------- SearchTime: "..string.format("%3.2f",(os.clock()-T)).." sec.") return 1 end;
Removed the brackets

Thanks
Title:
Post by: bastya_elvtars on 24 May, 2005, 04:54:50
Yes. Anything between " and " can be changed, only rule is: don't put there a third "!

:P