28.01.2011, 10:15
pawn Код:
stock countTabulatedOccurrences(string[]) {
new
tCount;
for(new it = 0; it < strlen(string); it++) {
if(string[it] == '\t') tCount++;
}
return tCount;
}
'\t' is not a string, it is just a single character due to the slash making it a control character.