Need help
 

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

Need help

Started by Lars, 30 December, 2004, 18:47:21

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lars

function Main()
   frmHub:UnregBot(BOTName)
   frmHub:RegBot(BOTName)
   SendToAll("( >>>>  "..Version.." Started"..date(" the %d/%m-%Y at %X ").."  <<<< )")
   TimeSpanInMinutes = 1              --> sets Hubstats time in minutes
   BOTNameInfo = "$MyINFO $ALL "..BOTName.." <++V:0.1 Dumle,C:and [SU+]Lars> $ $Black Light"..strchar( 1 )..""
   SendToAll(BOTNameInfo)
   AddProfile("Moderator", 4269273088)
   SetTimer(TimeSpanInMinutes*60000)
   StartTimer()
   guardGlobals()
end

function OnTimer()
   SendAdMessage()
end

function SendAdMessage()
   upline = "============H=U=B==S=T=A=T=S=========="
   underline = "======================================="
   hubstats = "\r\n\r\n"..upline.."\r\n"..
       "      ?Script Version:           "..Version.."\r\n"..
       "      ?Script Creator:              "..Creators.."\r\n"..
       "      ?Hub Name:               "..sHubName.."\r\n"..
       "      ?Hub Description:          "..sHubDesc.."\r\n"..
       "      ?Hub Adress:             \r\n"..
       "      ?Owner:           Lars".."\r\n"..
       "      ?Online Users:          "..sUserCount.."\r\n"..
       "      ?Redirect Adress:          "..sRedirect.."\r\n"..
       "      ?Maximum Users:          "..sMaxUsers.."\r\n"..
       "      ?Minimum Share:          "..sMinShare.." in bytes".."\r\n"..
       "      ?Total Share in the hub:          "..sCurrentShare.." in bytes".."\r\n"..
       "      ?Hub Network:           !network".."\r\n"..
       "      ?Hub Rules:              !rules".."\r\n"..underline.."\r\n".." "

      SendToAll(BOTName, hubstats)
end


when the bot is loading AdMessages this is showing up in Ptokax TD4

Syntax Error: assignment to undefined global `upline'

whats wrong ?(

plop

your missing a part of the script.
better search for an alternative, there are several scripts like this posted on this board.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Lars

Nice there Mutor!

must thank you for the help
 
and its works perfectly.. :))

SMF spam blocked by CleanTalk