29.09.2011, 04:17
It works but the else statement is still necessary (if I type /anim f, or some random text it does or shows nothing without the else).
I guess that fixes it, but logically if I check for "hello" then do..., else if "goodbye" then do...., else do.....
It should be impossible for "" or " " to do anything other than execute the else statement. It also means I repeat the same message twice in the function when there shouldn't be a need. Maybe I can fix up strcmp myself.
It's fixed for now though, thanks mate!
I guess that fixes it, but logically if I check for "hello" then do..., else if "goodbye" then do...., else do.....
It should be impossible for "" or " " to do anything other than execute the else statement. It also means I repeat the same message twice in the function when there shouldn't be a need. Maybe I can fix up strcmp myself.
It's fixed for now though, thanks mate!