20.06.2011, 15:09
(
Последний раз редактировалось Donya; 20.06.2011 в 15:49.
)
pawn Код:
new Rows = 0, Currentrow = 0, R = -1;
for(new i = 0; i != 14; i++)
{
R = strfind(text, "~n~", true, Currentrow);
if(R != -1)
{
Rows ++;
Currentrow = R;
printf("Currentrow: %d", Currentrow);
}
}
printf("Rows: %d", Rows);;
pawn Код:
"~n~Hello~n~"
i also tested it with 9 ~n~'s, and it keeps returning 13