30.12.2013, 11:14
I believe this will cause infinite-loops, I strongly suggest you retest everything:
Also, I don't think you need all that jazz. As long as the amount of tildes are even, the gametext or textdraw won't really cause bugs (even with wrong letters in-between). I'm simply using this code in my gamemode:
pawn Code:
isFaultyGameText("~r~")
pawn Code:
stock isValidGameText(szText[]) {
new
iTildes
;
for(new i = 0; szText[i] != EOS; ++i) {
if(szText[i] == '~') {
iTildes++;
}
}
return !(iTildes & 0b1);
}