mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2003
Posts: 48
F
flup Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Mar 2003
Posts: 48
I'm currently bussy making a script for Clans (Managing a private channel)

But since I haven't scripted in a while here's a question:
I have made a variable called:
%upcwar %clantag vs %upcclan @ %upctime ( %upcxonx )

where the bold is the variable and the none-bold it's content.
Under the dialog there's a little on *:dialog action:

on *:dialoag:cscfg:sclick:42: {
set %upcclan $did(39).text
set %upcxonx $did(40).text
set %upctime $did(41).text
/topic %clanpvt %upcwar
}

So it has to set the topic in %clanpvt (the room) to %upcwar, ok till here no problems. But when I click button (id 42) it's messages me in my status window this:

* Invalid parameters: $did (line 79, pvtcs.mrc)

The weird thing is; line 79 is an empty line. But the one under it are the once wich should be displayed in the topic:

Line 79:
Line 80: set %lwopp $did(46).text
Line 81: set %lwresult $did(47).text
Line 82: set %lwkind $did(48).text

Anyone has an idea? Since the only thing I can come up with is that you can't put variables in a variable.

Thx in advance.

Here's the complete code:
http://www.nomorepasting.com/paste.php?pasteID=11517

Last edited by flup; 07/05/04 04:15 PM.
Joined: Aug 2003
Posts: 325
W
Fjord artisan
Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
/help $did

You need a name and id for $did, in your case, I think using $did(cscfg,39).text *might* resolve your problem

I never was that good with dialogs, so I could be mistaken.

Joined: Nov 2003
Posts: 67
C
Babel fish
Offline
Babel fish
C
Joined: Nov 2003
Posts: 67
Try evaluating the vars /topic $eval(%clanpvt,2) $eval(%upcwar,2)


Last edited by Canario; 07/05/04 09:54 PM.

irc.universochat.net
#escripting
Joined: Mar 2003
Posts: 48
F
flup Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Mar 2003
Posts: 48
Let's try

Joined: Mar 2003
Posts: 48
F
flup Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Mar 2003
Posts: 48
Script doesn't do nething right now :|

Joined: Mar 2003
Posts: 48
F
flup Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Mar 2003
Posts: 48
Well it works kindof now.
But what is the command to add a user for level 100 per example ?

Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
In mIRC, type /help /auser for a brief explanation on how to add user levels.


Link Copied to Clipboard