Long text question
#1

Hey I'm trying to make it for example: Whenever I right now do /ann [text]

Let's say I do a very long text, then it just keeps going all over to your health bar on the upper right side the text,

What I'm trying to do is to make it like at some point make the: .... and then go one step down over in the chatbox instead of going in one long line all the way over to the health bar.

This is the /ann code

pawn Код:
new text[150];
        if(sscanf(params,"s[150]",text)) SendClientMessage(playerid,COLOR_YELLOW,"Usage: /(ann)ounce [message]");
        else
        {
            new string[170];
            format(string,sizeof(string),"Administrator %s: %s",pname,text);
            SendClientMessageToAll(COLOR_RED,string);
            return 1;
        }
Reply
#2

Bump, anybody who can help?
Reply
#3

Tried splitting the string in multiple strings?
Reply
#4

No but how can I do that like? Can you split one string into multiple?
Reply
#5

https://sampwiki.blast.hk/wiki/Strmid

Create one string containing the first part (index 0 - max line length), and another one containing the rest.
Reply
#6

Yea I got it fixed, just required a search and then I found something regarding it , however thanks to you both.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)