well its sorta works xD i have 2 picturs. First one is before the changes: http://imgur.com/bRyHOQ4,2RSIz8O#1 and this one after the changes: http://imgur.com/bRyHOQ4,2RSIz8O#0 as you can se after the changes it does what i want it to do. but its only telling me about 1 command and not all of them now this is a pictur from my code, how i think you want me to change it to: http://imgur.com/N5zLV5Y
Just strip out the !cmd section above and replace it with this. Works like you wanted.
on *:TEXT:!cmd:#: {
if (%CADD.On. [ $+ [ $chan ] ] != $null) {
var %i 1 | while $ini(rcdradio_commands.ini,#,%i) {
var %commands %commands ! $+ $v1
inc %i
}
msg # $iif(%commands,Custom commands: %commands,There are no custom commands for $chan $+ .)
}
}
(Sorry, I don't know how to post code here)
Sorry, I forgot I took out part of the if %CADD.On. statement on my script. My apologies. This should work:
on *:TEXT:!cmd:#: {
if (%CADD.On. [ $+ [ $network ] ] [ $+ [ . ] ] [ $+ [ $chan ] ] != $null) {
var %i 1 | while $ini(rcdradio_commands.ini,#,%i) {
var %commands %commands ! $+ $v1
inc %i
}
msg # $iif(%commands,Custom commands: %commands,There are no custom commands for $chan $+ .)
}
}
Wow, I need to quit doing this stuff so late at night. Forgot a part. I tested this one and double-checked it. Working. Here ya go.
on *:TEXT:!cmd:#: {
if (%CADD.On. [ $+ [ $network ] ] [ $+ [ . ] ] [ $+ [ $chan ] ] != $null) {
var %k = $+($network,-,$chan)
var %i 1 | while $ini(rcdradio_commands.ini,%k,%i) {
var %commands %commands ! $+ $v1
inc %i
}
msg # $iif(%commands,Custom commands: %commands,There are no custom commands for $chan $+ .)
}
}
You could try making it so it sets a varible with all the commands then posts that varible to the user...
Example:
Instead of msg $nick - Replace it with var %p = ! $+ %kk => $readini(%command_file,n,%k,%kk) ==
Then, instead of msg $nick == End of Custom Command List - Replace that with, msg $nick %p
I think this may be the best way of doing it, let me know how you get on and if you need any help, reply to this comment.
Thank you and I am glad you like it.