AMX Mod X API Documentation

Signature
stock remove_filepath(const szFilePath[], szFile[], pMax){ new len = strlen(szFilePath); while((--len >= 0) && (szFilePath[len] != '/') && (szFilePath[len] != '\')) { } copy(szFile, pMax, szFilePath[len + 1]); return;}
Description

Removes a path from szFilePath leaving the name of the file in szFile for a pMax length.

Parameters
  • szFilePath String to perform search and replacements on.
  • szFile Buffer to store file name.
  • pMax Maximum length of the string buffer.
No return value
Назад
Верх