Removing an extension using strdel.
#1

I thought I could use strdel starting at the beginning of the extension and ending at the length of the filename... However,

This doesn't remove the extension:
pawn Код:
if(strfind(item, ".ini") != -1)
{
    strdel(item, item[strfind(item, ".ini")], item[strlen(item)]);
    format(line, sizeof(line), "%s\n%s", item, line);
    fcount++;
}
How do i remove the extension!

Ahead of time, thanks to all for any help!
Reply
#2

pawn Код:
strdel(item, strfind(item, ".ini"), strlen(item));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)