mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Are you aware that the filename you chose isn't like the other filenames in the other script?

Shouldnt:

sreglist.txt

Be:

reglist.txt

Joined: Mar 2014
Posts: 214
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 214
Originally Posted By: SladeKraven
Are you aware that the filename you chose isn't like the other filenames in the other script?

Shouldnt:

sreglist.txt

Be:

reglist.txt

it is reglist sorry copied wrong code.
anyways that still doesn't work with all filenames being correct and all that

Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
According to your pastebin script link you provided on line 263 its sreglist.txt.

Nevertheless, what happens when you type:

//echo -a $exists(reglist.txt)

Joined: Mar 2014
Posts: 214
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 214
Originally Posted By: SladeKraven
According to your pastebin script link you provided on line 263 its sreglist.txt.

Nevertheless, what happens when you type:

//echo -a $exists(reglist.txt)

it is
Code:
$true

also i was using reglist at first but while i was waiting for replies i made a special reglist (sreglist) since i don't want normal regs timing people out

Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771

As you can clearly see, the IF statements in the 2 top scripts have not been opened with a bracket. Whereas the bottom 2 have been scripted properly.

Syntax is: IF (CONDITION) { DO STUFF }
What you have is: IF (CONDITION)
And nothing else.

Joined: Mar 2014
Posts: 214
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 214
Originally Posted By: Nillen

As you can clearly see, the IF statements in the 2 top scripts have not been opened with a bracket. Whereas the bottom 2 have been scripted properly.

Syntax is: IF (CONDITION) { DO STUFF }
What you have is: IF (CONDITION)
And nothing else.

ok i see, that worked smile thanks and now i will never mess up on something like that again!

Code:
on *:TEXT:!timeout*:#: {
  if ($read(reglist.txt,nw,$nick)) {
    msg $chan timing out $$2 for $$3 seconds
    msg $chan .timeout $$2 $$3
  }
}
on *:TEXT:!to*:#: {
  if ($read(sreglist.txt,nw,$nick)) {
    msg $chan timing out $$2 for $$3 seconds
    msg $chan .timeout $$2 $$3
  }
}

Last edited by judge2020; 31/03/14 10:02 PM.
Page 2 of 2 1 2

Link Copied to Clipboard