AMX Mod X API Documentation

Signature
stock xs_replace_char(text[], len, what, with){ // let the xs_replace function do the work new arr[4]; arr[0] = what; arr[1] = 0; arr[2] = with; arr[3] = 0; return xs_replace(text, len, arr[0], arr[2]);}
Description

Replaces all occurencies of @what character in @text with @with character.

Parameters
  • text The text to search in.
  • len The maximum size of the @text buffer.
  • what What character to search for.
  • with What charactear to replace occurencies with.
Returns

The number of replaced characters.

Назад
Верх