This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

init server set

Old posts that have not been replied to for several years.
Locked
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

init server set

Post by NewzUK »

Hi - I'm trying to set some vars just once on connection so they are available for some scripts, but what I have here dosn't seem to work...

Code: Select all

bind evnt - init-server evnt:init_set
   proc evnt:init_set {type} {
    set apold ap
    set apnaold apna
    set afpold afp
    set cbsbold cbsb
    set djold dj
    set rtrold rtr
}
any ideas? thanks.
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Have you ever read "The Manual"?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Global variables are set outside of procedures.
Only local variables can be set inside of procedures.

As global variables can be used throughout the bot we
can say with any script, local variables which are set
inside procedures can be only and only used inside
procedures and will have no affect/result outside of them,
as they woudn't have been declared.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

Post by NewzUK »

thank you both - still having issues but will try to nut it out! =)
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
Locked