06.03.2015, 02:44
Just change the name of the macro.
PHP код:
#define lenull(%1) \
((%1[0] == 0) || (%1[0] == 1 && %1[1] == 0))
if(lenull(inputtext))
{
SendClientMessage(playerid, -1, "text is null, insert correct text.");
}
else if(!lenull(inputtext))
{
if(strlen(inputtext) >= 1 && strlen(inputtext) < 145) // 1 - 144 characters in inpittext
{
/// bla bla text not is null, and range correct 1-144 characters.
}
else SendClientMessage(playerid, -1, "Text incorrect min 1 character, max 144.");
}