sscanf checking string help
#1

Hello guys, is possible to edit this:

pawn Код:
if(sscanf(inputtext, "{p<_>s[9]s[9]}"))
{
     SendClientMessage(playerid, -1, "You have entered wrong format of name!");
}
this checking if is the underscore in inputtext format NAME_LASTNAME it works pretty well but one thing, which doesnt work is: when I enter to inputtext this "_sometext" it says so it is correct, I just need to know I guess, how to get strlen of the string first tring and add if statement if is strlen bigger than 1.. Any ideas? thx
Reply


Messages In This Thread
sscanf checking string help - by Riwerry - 28.01.2014, 12:20
Re: sscanf checking string help - by Riwerry - 28.01.2014, 15:49
Re: sscanf checking string help - by Konstantinos - 28.01.2014, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)