mIRC Homepage
Posted By: flup Using variables in a variable ,,, - 07/05/04 03:49 PM
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
Posted By: Wolfie Re: Using variables in a variable ,,, - 07/05/04 05:35 PM
/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.
Posted By: Canario Re: Using variables in a variable ,,, - 07/05/04 09:54 PM
Try evaluating the vars /topic $eval(%clanpvt,2) $eval(%upcwar,2)

Posted By: flup Re: Using variables in a variable ,,, - 08/05/04 04:00 PM
Let's try
Posted By: flup Re: Using variables in a variable ,,, - 08/05/04 04:04 PM
Script doesn't do nething right now :|
Posted By: flup Re: Using variables in a variable ,,, - 08/05/04 04:34 PM
Well it works kindof now.
But what is the command to add a user for level 100 per example ?
Posted By: The_Game Re: Using variables in a variable ,,, - 08/05/04 06:19 PM
In mIRC, type /help /auser for a brief explanation on how to add user levels.
© mIRC Discussion Forums