xs_strtrim
- Синтаксис
-
stock xs_strtrim(stringtotrim[], charstotrim, bool:fromleft = true) { if (charstotrim <= 0) return; if (fromleft) { new maxlen = strlen(stringtotrim); if (charstotrim > maxlen) charstotrim = maxlen; // In format, input and output regions can overlap format(stringtotrim, maxlen, "%s", stringtotrim[charstotrim]); } else { new maxlen = strlen(stringtotrim) - charstotrim; if (maxlen < 0) maxlen = 0; // In format, input and output regions can overlap format(stringtotrim, maxlen, "%s", stringtotrim); } }
Переменная | Описание |
---|---|
Нет агрументов |
- Описание
- This function has no description.