AMX Mod X API Documentation

Signature
stock xs_strmid(const oldmsg[], newmsg[], start, end, outlen = -1){ new len = strlen(oldmsg); if(start < 0) start = 0; ++end; // Include end if(end <= start || end > len) end = len; new j = 0, i = start; for(; (i < end) && (outlen--);) newmsg[j++] = oldmsg[i++]; newmsg[j] = 0;}
Description

Copies characters from @oldmsg to @newmsg, starting at @start and ending

at @end (includes the end character).

Parameters
  • oldmsg The string to copy from.
  • newmsg The string to copy to.
  • start Starting position of the @oldmsg string to copy from.
  • end Ending position of the @oldmsg string to copy from.
  • outlen If positive, specifies the maximum number of characters

    to be copied. Otherwise, the function assumes that

    newmsg is at least @end - @start + 1 characters long.

No return value
Назад
Верх