mIRC Homepage
Posted By: Glibber Menu - 07/09/07 06:56 PM
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


Posted By: Lpfix5 Re: Menu - 07/09/07 07:07 PM
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

Posted By: Glibber Re: Menu - 07/09/07 07:47 PM
missing the : between race & personality =)?

or?
Posted By: Masterkiller Re: Menu - 07/09/07 11:37 PM
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 ]
Posted By: Glibber Re: Menu - 08/09/07 06:24 PM
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
Posted By: Lpfix5 Re: Menu - 09/09/07 02:36 AM
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.
© mIRC Discussion Forums