I've
posted this over at dodplugins.net, but I'll post it here too since it's driving me nuts and I might get a faster reply here
I started working on my 2nd plugin today, I managed to get rid of all the compiler errors, but it doesn't run as expected and I can't work out why so I'm hoping one of you guys could help me out with this.
Here's the code;
What I want the plugin to do is check if the string at least x characters (amx_caps_minlen) long and if over y percent (mx_caps_minpercent) of the string is in caps and if it is it'll call punish() on them.
At the moment punish() will only be called if there's no lower case characters in the string so "HELLO WORLD" will trigger it, but "HELLO WORLd" wont.
What am I doing wrong?
Any help with this would be really appreciated, I'm a complete newb at this so it's probably something completly stupid

.
Pyro
__________________