samp.directory
← Scripts and libraries

Open-GTO/zmessage

Multi-line messages

Library★ 8updated Nov 2021MITPawnsampctl
Open on GitHub

Install with sampctl

sampctl package install Open-GTO/zmessage

Run this in your project folder. sampctl downloads the package and what it depends on.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

Depends on 1 package

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 in array.
    • line_size: The number of the symbols which can be stored in one array string.
  • Return values:
    • The number of the lines

Directives

DirectiveDefault valueCan be redefinedNote
ZMSG_MAX_CHAT_LENGTHMAX_CHATBUBBLE_LENGTHyes
ZMSG_MAX_PLAYER_CHAT_LENGTH(MAX_CHATBUBBLE_LENGTH / 2)yes
ZMSG_SEPARATORS_LIST' 'yesUsed in case statement
ZMSG_HYPHEN_END" ¬"yes
ZMSG_HYPHEN_START"» "yes

Screenshot

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing

Open-GTO/zmessage: SA-MP Library | samp.directory