20.08.2012, 18:18
(
Последний раз редактировалось Drake1994; 21.08.2012 в 13:46.
)
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>
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