09.05.2015, 17:57
Why you aren't write it like this?
Your fixed code won't be work. Take mine.
PHP код:
stock IsNumeric(const string[])
{
new length = strlen(string);
if(!length)return 0;
for(new i;i<length;i++)
{
if(string[i] > '9' || string[i] < '0')return 0;
}
return 1;
}