Skip to content
Multi-line messages
Pawn
Branch: master
Clone or download
ziggi Merge pull request #8 from spacemud/const-correctness
Fix tiny const correctness issue
Latest commit c9b02cc Apr 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore Add sampctl stuff Jan 19, 2018
LICENSE Initial commit Jul 8, 2016
README.md Fix links in README Dec 23, 2017
pawn.json Fix Jan 19, 2018
test.pwn Add sampctl stuff Jan 19, 2018
zmessage.inc Fix tiny const correctness issue Apr 23, 2019

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

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

example

You can’t perform that action at this time.