Help with anti-ad script please
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Help with anti-ad script please

Started by Tw?sT?d-d?v, 20 January, 2007, 21:00:47

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tw?sT?d-d?v

After updating ptokax to 0.3.5.2d im getting folling error in the folling script can some point out whats wrong please

[18:10] Syntax C:\Users\JAY\Desktop\0.3.5.2d\scripts\antiadvert.lua:65: attempt to call a table value
[18:11] Syntax C:\Users\JAY\Desktop\0.3.5.2d\scripts\antiadvert.lua:65: attempt to call a table value
[18:11] Syntax C:\Users\JAY\Desktop\0.3.5.2d\scripts\antiadvert.lua:65: attempt to call a table value
[18:41] Syntax C:\Users\JAY\Desktop\0.3.5.2d\scripts\antiadvert.lua:65: attempt to call a table value

-------------------------------------------------------------------------------- 
-- anti advertise by ruler 
-- OPs cannot post adverts in PM but Master can :P 
-------------------------------------------------------------------------------- 
antiadds = { 
["gotdns"]=1, 
["bounceme.net"]=2, 
["hopto.org"]=3, 
["myftp.biz"]=4, 
["myftp.org"]=5, 
["myvnc.com"]=6, 
["ip.biz"]=7, 
["ip.info"]=8, 
["ip.org"]=9, 
["redirectme.net"]=10, 
["servebeer.com"]=11, 
["servecounterstrike.com"]=12, 
["serveftp.com"]=13, 
["servegame.com"]=14, 
["servehalflife.com"]=15, 
["servehttp.com"]=16, 
["servemp3.com"]=17, 
["servepics.com"]=18, 
["servequake.com"]=19, 
["sytes.net"]=20, 
["zapto.org"]=21, 
["ciscofreak.com"]=22, 
["damnserver.com"]=23, 
["http://"]=24, 
["ditchyourip.com"]=25, 
["dnsiskinky.com"]=26, 
["geekgalaxy.com"]=27, 
["freaks.com"]=28, 
["ip.ca"]=29, 
["ip.co.uk"]=30, 
["ip.com"]=31, 
["ip.net"]=32, 
["point2this.com"]=33, 
["securityexploits.com"]=34, 
["securitytactics.com"]=35, 
["servehumour.com"]=36, 
["servep2p.com"]=37, 
["servesarcasm.com"]=38, 
["stufftoread.com"]=39, 
["workisborring.com"]=40, 
["musicdvdworld"]=41, 
["dchub://"]=42, 
["www."]=43, 
["hub"]=44,
["no-ip"]=45,
["dash"]=46,
["dot"]=47,
["private"]=48,
["privatehub"]=49,
["hub"]=50,
["gb"]=51,
["greatalliance"]=52,
["great"]=53,
["alliance"]=54,
} 
-------------------------------------------------------------- 
Bot = frmHub:GetHubBotName() 
function ToArrival(user, data) 
if user.iProfile ~= 0  and user.iProfile ~= 4 and user.iProfile ~= 5 then
for key,a in antiadds do 
if( string.find(string.lower(data), key) ) then 
         user:SendPM(Bot, "Sorry, your PM was blocked. Please use main chat to post adverts!") 
         return 1 
         end 
end 
end 
end 
-- EOF

bastya_elvtars

for key,a in antiadds do => for key,a in pairs(antiadds) do
Everything could have been anything else and it would have just as much meaning.

Tw?sT?d-d?v

thx m8     :)          ive realy got to find some time to learn lua

SMF spam blocked by CleanTalk