[Include] SCMEX
#1

SCMEX
Description:
I think a lot people having that problem, if you write a long text, which is longer than 128 or 144, then you can't read it perfect, becasue it is out of view. But with this include, you can slice them into more lines, and with it you can read the long text purely. The default slice value is 128, but you can set it to MAX 148!

Picture:


As you can see, the long text is sliced into 4 piece, and you can reade it purely.

Warning:
If you color your text, it can slice it, and it's lose their color effect.

Usage:
Just put the include into your pawno/include folder, place the following code under the include <a_samp>
Код:
#include <scmex>
And you need just recompile your script, beacuse its redefine the SendClientMessage and SendClientMessageToAll.

Download:
Pastebin
Solidfiles
Код:
#if defined scmex_included
	#endinput
#endif
#define scmex_included

stock
	darabolas_SCM(playerid, color, const text[], darabolas = 128)
{
	new
		seged1[148 + 1],
		valami = 0 - darabolas,
		lenght = strlen(text);

	while(lenght > (valami += darabolas))
		strmid(seged1, text[valami], 0, darabolas), SendClientMessage(playerid, color, seged1);
}
#if defined _ALS_SendClientMessage
    #undef SendClientMessage
#else
    #define _ALS_SendClientMessage
#endif
#define SendClientMessage darabolas_SCM

stock
	darabolas_SCMToAll(color, const text[], darabolas = 128)
{
	new
		seged1[148 + 1],
		valami = 0 - darabolas,
		lenght = strlen(text);

	while(lenght > (valami += darabolas))
		strmid(seged1, text[valami], 0, darabolas), SendClientMessageToAll(color, seged1);
}
#if defined _ALS_SendClientMessageToAll
    #undef SendClientMessageToAll
#else
    #define _ALS_SendClientMessageToAll
#endif
#define SendClientMessageToAll darabolas_SCMToAll
Reply


Messages In This Thread
SCMEX - Slice your text to another line - by Drake1994 - 20.08.2012, 18:18
Re: SCMEX - by Lorenc_ - 21.08.2012, 09:57
Re: SCMEX - by Drake1994 - 21.08.2012, 12:42
Re: SCMEX - by Drake1994 - 21.08.2012, 13:46
Re: SCMEX - by Niko_boy - 21.08.2012, 13:53

Forum Jump:


Users browsing this thread: 1 Guest(s)