28.01.2011, 07:31
I know, it's all about loops, but i couldn't manage it so that it counts correctly, this is what i have
It does work, but gives me a big number, like 357 but i don't think the string has that much :O.
I put the message into the loop jsut for fun.
pawn Код:
new Cmd,t,s[sizeof(Str8)];
format( s, sizeof s, "%s", Str8 );
for ( new x = sizeof( s ); t < x; t++ )
{
if ( strfind( s[ t ], "\t", false ) == 0 )
{
Cmd++;
FormMessage( playerid, -1, ""CLB"%d", Cmd );
}
}
I put the message into the loop jsut for fun.