28.10.2009, 16:33
And... you can check that it's numeric in the response call back to save any problems
pawn Код:
if(!IsNumeric(inputtext)) return SendClientMessage(playerid,COLOR_RED,"You must write numbers. Not letters");
pawn Код:
stock IsNumeric(const string[])
{
for (new i = 0, j = strlen(string); i < j; i++)
{
if (string[i] > '9' || string[i] < '0')
{
return 0;
}
}
return 1;
}