Inputtext empty condition
#6

Just change the name of the macro.

PHP код:
#define lenull(%1) \
    
((%1[0] == 0) || (%1[0] == && %1[1] == 0))


if(
lenull(inputtext))
{
    
SendClientMessage(playerid, -1"text is null, insert correct text.");
}
else if(!
lenull(inputtext))
{
    if(
strlen(inputtext) >= && 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.");

Reply


Messages In This Thread
Inputtext empty condition - by bigboy81 - 05.03.2015, 22:47
Re: Inputtext empty condition - by SickAttack - 06.03.2015, 00:10
Re: Inputtext empty condition - by bigboy81 - 06.03.2015, 01:32
Respuesta: Inputtext empty condition - by JuanStone - 06.03.2015, 02:04
Re: Respuesta: Inputtext empty condition - by bigboy81 - 06.03.2015, 02:33
Respuesta: Inputtext empty condition - by JuanStone - 06.03.2015, 02:44
Re: Inputtext empty condition - by SickAttack - 06.03.2015, 03:11
Re: Respuesta: Inputtext empty condition - by bigboy81 - 06.03.2015, 12:23
Re: Respuesta: Inputtext empty condition - by CalvinC - 06.03.2015, 12:27
Re: Respuesta: Inputtext empty condition - by bigboy81 - 06.03.2015, 12:54

Forum Jump:


Users browsing this thread: 5 Guest(s)