13.11.2010, 05:31
pawn Код:
new full = strlen(inputtext);
for(new i = 0; i < full; i++)
{
if(IsNumeric(inputtext[i]))
{
SendClientMessage(playerid, 0xFFFFFFFF, "Your Firstname Cannot Contain Numbers or be Blank Text Only");
ShowPlayerDialog(playerid,5,DIALOG_STYLE_INPUT,"Firstname","What is your firstname?","Submit","Cancel");
return 0;
}
}
pawn Код:
stock IsNumeric(string[])
{
for (new i = 0, j = strlen(string); i < j; i++)
{
if (string[i] > '9' || string[i] < '0') return 0;
}
return 1;
}