28.01.2014, 12:20
Hello guys, is possible to edit this:
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
pawn Код:
if(sscanf(inputtext, "{p<_>s[9]s[9]}"))
{
SendClientMessage(playerid, -1, "You have entered wrong format of name!");
}