samp.directory
← Skripte und Bibliotheken

Open-GTO/zmessage

Multi-line messages

Bibliothek★ 8aktualisiert Nov. 2021MITPawnsampctl
Auf GitHub öffnen

Mit sampctl installieren

sampctl package install Open-GTO/zmessage

Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.

Im Pawn-Compiler ausprobieren →

Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.

Hängt von 1 Paket ab

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

Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden

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