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
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