Библиотека★ 9обновлён нояб. 2021 г.MITPawnsampctl
Открыть на GitHubУстановка через sampctl
sampctl package install Open-GTO/zmessage
Выполните в папке проекта. sampctl скачает пакет и его зависимости.
Зависит от 1 пакета
- sampctl/samp-stdlibнет в этом каталоге
Используется в 3 пакетах
README.md
zmessage
Multi-line messages with whole words shifts.
Usage
Just include it.
Functions
This library provides only one function with can be useful in some cases. Some examples of usage can be found here.
ZMsg_GetMessages(message[], array[][], const lines = sizeof(array), const line_size = sizeof(array[]))
- Parameters:
message[]: The original message which should be splitted.array[][]: The array which stores splitted strings.lines: The number of the strings which can be stored inarray.line_size: The number of the symbols which can be stored in onearraystring.- Return values:
- The number of the lines
Directives
| Directive | Default value | Can be redefined | Note |
|---|---|---|---|
| ZMSG_MAX_CHAT_LENGTH | MAX_CHATBUBBLE_LENGTH | yes | |
| ZMSG_MAX_PLAYER_CHAT_LENGTH | (MAX_CHATBUBBLE_LENGTH / 2) | yes | |
| ZMSG_SEPARATORS_LIST | ' ' | yes | Used in case statement |
| ZMSG_HYPHEN_END | " ¬" | yes | |
| ZMSG_HYPHEN_START | "» " | yes |
Screenshot
Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью