mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2008
Posts: 6
P
pilsken Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Mar 2008
Posts: 6
Hey!

Im working on a little simple script that lets you add ownership but the problem is that it won't add more than one owner/master or what ever. How do i solve this?

CODE:

Code:
on owner:TEXT:*:#:{
if ($1 == ?addowner) {
write owner.txt $chan $address($2,1) | notice $nick 7[14» Addade $2 som owner. 14«7]
}
if ($1 == ?addmaster) {
write master.txt $chan $address($2,1) | notice $nick 7[14» 15Addade $2 som master. 14«7]
}
if ($1 == ?addnormal) {
write normaluser.txt $chan $address($2,1) | notice $nick 7[14» 15Addade $2 som normaluser. 14«7]
}
}


Thx.

Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
There's nothing wrong with the code itself, how do you know it won't add more than one *thing* ?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Mar 2008
Posts: 6
P
pilsken Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Mar 2008
Posts: 6
I tried it and its not adding more users, just one. frown

Anyone know what to do?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Try changing the ? to something else ( . or ! for example) and see if it works. ? is a wildcard and *may* be giving you some problems.


Invision Support
#Invision on irc.irchighway.net
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
If he already succeed to add one user with this code, it should work.He can use /echo to debug the code.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard