Long text question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Long text question (
/showthread.php?tid=159311)
Long text question -
oliverrud - 12.07.2010
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;
}
Re: Long text question -
oliverrud - 13.07.2010
Bump, anybody who can help?
Re: Long text question -
Hiddos - 13.07.2010
Tried splitting the string in multiple strings?
Re: Long text question -
oliverrud - 13.07.2010
No but how can I do that like? Can you split one string into multiple?
Re: Long text question -
Mauzen - 13.07.2010
https://sampwiki.blast.hk/wiki/Strmid
Create one string containing the first part (index 0 - max line length), and another one containing the rest.
Re: Long text question -
oliverrud - 13.07.2010
Yea I got it fixed, just required a search and then I found something regarding it
, however thanks to you both.