I have a script like this:
Code:
on *:TEXT:*:#Mychan: {
if (*atext* iswm $1-) { msg $chan text No 1 }
elseif (*btext* iswm $1-) { msg $chan text No 2 }
elseif (*ctext* iswm $1-) { msg $chan text No 3 }
elseif (*dtext* iswm $1-) { msg $chan text No 4 }
...
...
...
elseif (*ztext* iswm $1-) { msg $chan text No 99 }
}


Thus, have limit to the number of "elseif" allowed to use?

Although it still works, but I think the syntax is not correct.

Please help me to present a more accurate script.

Thank you.

Last edited by quanbhvn; 26/09/15 03:25 PM.