03.06.2011, 00:42
This fails
usage
should output
like it should delete everything after the 2nd dot (".")
pawn Код:
stock splitstring(string[])
{
new dot;
dot = strfind(string, ".", false, 0);
dot = strfind(string, ".", false, dot + 1);
strdel(string, dot, 128);
format(string, 128, "%s", string);
return string;
}
pawn Код:
new string[128];
format(string, sizeof(string), "%s", splitstring("Hello.There.Wazzup.?"));
print(string);
pawn Код:
Hello.There.