mIRC Home    About    Download    Register    News    Help

Print Thread
#42170 16/08/03 04:42 PM
Joined: Aug 2003
Posts: 6
M
mowca Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Aug 2003
Posts: 6
For example in file script1.ini:
Code:
  
on *:OP:[...]:{
  if ($nick == $me) {
  ...
  } else {
  set %data $hget(...)
  set %data1 $hget(...)
  }
  if (%data1 == blablabla)  {
    ...
  }
}

In file script2.ini
Code:
on *:OP:[...]:{
 set %data1 $null
}


I'm interested in how variable %data1 will behave. Is there any possibility that the command in file script2.ini (set %data1 $null) will be executed after execution of command in file script1.ini set %data1 $hget(...) and before if statment ?

PLS HELP:)
P.S. Sorry for my english:)

#42171 16/08/03 05:15 PM
Joined: Dec 2002
Posts: 117
R
Vogon poet
Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
mIRC will either execute all commands for the event in script1 and then move on to script2, or execute the commands in script2 first and then those in script1. The order deends on the order in which the files are loaded ([ALT]+R, file>Order) The highest script will execute first.


$input(Me like stars, You too?)
#42172 16/08/03 05:49 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Using the same variable in the same event, that does something else is extremely unwise and the result will become erratic. Either combine the two events into one, or use different variable names.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#42173 16/08/03 06:11 PM
Joined: Aug 2003
Posts: 6
M
mowca Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Aug 2003
Posts: 6
Rich : That was the information that I needed tx a lot
LocutusoBorg: That's not this problem. I know that using the same variables might cause strange reaction in mIRC, but tx:)


Link Copied to Clipboard