mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
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


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
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


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779

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.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
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.

#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Page 2 of 2 1 2

Link Copied to Clipboard