instead of using a global variable you should use a local i.e. use /var instead of /set which removes the need to unset all the varibles at the end
also you can use $regsubex to make this significantly smaller/faster
@slub77 $2- is the quit msg, if you use $2 it will only be one word
%chan should be $chan, also you can use the $nick identifier to see if $nick is op i.e. $nick(#,$nick,o)
this snippet requires a $4 and your translation is incorrect the yo form only means i verb not i am verb or i do verb
u need to include estar/hacer
i.e. estoy bailando and hago bailar
as do the rest of the forms and this only includes -ar verbs ir/er have different suffixes
even if his code didn't work my comment still told you exactly what was wrong
Code
*1* in the beginning is redundant since * matches anyone and 1 will only match 1 and you didn't include an alias for $describe unless you mean /describe
using any system() command in general is a bad habit, for one it is OS bound, meaning that not all OS' support it and if u try to compile it on one without it u will get an error, its also a security risk because if someone hacked your computer and changed pause.exe to something malicious you could harm your computer.
using cin.get() is not exactly like system("pause"), but it can be used to accomplish all the same tasks
also in your code, u have 'a' being a global variable but its only used in main()
is unneeded as you do not use them at all and i don't think your using the cmd prompt, also
Code
var is an invalid data type and x and string should be reversed i.e., string x. however since your only using it to store +-*/ using char would be more efficient.
instead of using a loop you can use do... while, and in your switch statement you need to add a break after each statement or it will continue until the end or it reaches a break
also you can use $regsubex to make this significantly smaller/faster
Code