08.01.2011, 18:43
Quote:
|
That's not good because I really need it. Anyone got an idea?
EDIT: And how can I check if there are 3 ":" in the string? |
Use it as so: stringCount("1:2:3", ":", 5);
pawn Код:
stock stringCount(string[], token, length)
{
new count;
for(new i = 0; i < length; i++)
{
if(string[i] == token)
count++;
}
return count;
}


