21.10.2011, 15:17
If you have only 1 dot in the filename, then it's easy enough;
pawn Код:
new filename[32] = example.txt,
strdel(filename, strfind(filename, ".", true), strlen(filename))