mIRC Home    About    Download    Register    News    Help

Print Thread
#185292 07/09/07 06:56 PM
Joined: Oct 2005
Posts: 10
G
Glibber Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Oct 2005
Posts: 10
hep hey


menu channel {
# Other stuff
.Add User:/msg $chan !provadd $$?="Nick::" $$?="Province Name": [$$?="Race:" $$?="Personality:"]
# Other stuff
}

above dont work, for reasons i dont know:P (guess i wouldn't be posting if I did:P)

THe purpose is to get 4 popups where you enter stuff and after that you msg it to the channel where it ads the format to a bot

4 popups, Nick - Province Name - Race - Personality
in that particular order and the output should look like

!provadd Nick Province Name [Race:Personality]
in the channel where its used



Glibber #185293 07/09/07 07:07 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
your problem is witht he [ ] and : near your commands

use

$+([,$$?="Race:") $+($$?="Personality:",]) for the race personalility part

and use

$+($$?="Province Name",:) for the province name part smile

errors are...


$$?="Province Name": [$$?="Race:" $$?="Personality:"]

red pieces are to close to cmds



Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #185295 07/09/07 07:47 PM
Joined: Oct 2005
Posts: 10
G
Glibber Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Oct 2005
Posts: 10
missing the : between race & personality =)?

or?

Glibber #185297 07/09/07 11:37 PM
Joined: May 2007
Posts: 10
M
Pikka bird
Offline
Pikka bird
M
Joined: May 2007
Posts: 10
The script evaluate the characters : and [ ] (the first is delimiter between menu name and command, the second is (or are) evaluation brackets that evaluate any text between then as a script). One way to fix the problem is to do it as the post above. The second way is to use $chr() to write this characters without being evaluated as a sctipt. Example:

Code:
menu channel {
  # Other stuff
  .Add User:/msg $chan !provadd $$?="Nick::" $$?="Province Name" $+ $chr(58) $chr(91) $+ $$?="Race:" $$?="Personality:" $+ $chr(93)
  # Other stuff
}


$chr(58) returns :
$chr(91) returns [
$chr(93) returns ]

Last edited by Masterkiller; 07/09/07 11:38 PM.
Masterkiller #185331 08/09/07 06:24 PM
Joined: Oct 2005
Posts: 10
G
Glibber Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Oct 2005
Posts: 10
yep it worked with your way Masterkiller

edited it abit

Code:
.Add User:/msg $chan !provadd $$?="Nick::" $$?="Province Name::" $chr(91) $+ $$?="Race:" $+ $chr(58) $+ $$?="Personality:" $+ $chr(93)


however, the pops come in this order:
Nick Race Personality Province Name, where it should be Nick - Province Name - Race - Personality

Glibber #185390 09/09/07 02:36 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: Glibber
missing the : between race & personality =)?

or?


no your missing a space between your command HERE$$?="whtever"HERE should be HERE $$?="whatever" HERE like that but if you want it to appear squashed togheter then either do this

HERE $+ $$?="whatevver" $+ HERE

or

$+(here,$$?="whatever",here) is the same.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Link Copied to Clipboard