strlen problem
#1

if(strlen(inputtext) > 4 && strlen(inputtext) < 1)
{
SendClientMessage(playerid, COLOR_GREY, "Tag allowed lenght 1-4 charachters");
ShowPlayerDialog(playerid, DIALOG_CLANTAG, DIALOG_STYLE_INPUT, "Clan tag:", "Choose you clan tag:", "Choose" , "Cancel");
return 1;
}
this is the lenght restriction when im creating the clan tag,i can still enter a tag over 4 charachters or under 1,wich is nothing,i can basicly just press enter and the tag will be set to a blank space and it still works,it's like strlen is ignored by the script
Reply


Messages In This Thread
strlen problem - by bosmania - 05.03.2019, 12:41
Re: strlen problem - by NaS - 05.03.2019, 12:57
Re: strlen problem - by bosmania - 05.03.2019, 13:11

Forum Jump:


Users browsing this thread: 2 Guest(s)