05.03.2015, 22:47
how to make if inputtext are blank server return that..
I try in my ways but doesn't work fine..
Also i try with sscanf but if are emty server say him eror, but if i type something again server say eror..
All of these not work i need if the imputtext emty server return that and send him message with eror.
I try in my ways but doesn't work fine..
Код:
if(strlen(inputtext) < 1) { SCM(playerid, COLOR_GREY,"Eror"); return 1; }
Код:
if(strfind(inputtext, "", true) != -1)return SCM(playerid, COLOR_GREY, "Eror");
Код:
if(!response) { SCM(playerid, COLOR_GREY,"Eror"); return 1; }
All of these not work i need if the imputtext emty server return that and send him message with eror.