04.02.2011, 14:04
Another version 
I know that +-.+ would be valid 
But I think that + should be included or . for floats

pawn Код:
stock bool:IsNumeric(const string[])
{
if(string[0] != EOS) {
for(new i = -1; ; ) {
switch(string[++i]) {
case '+', '-', '.', '0'..'9': continue;
case EOS: return true;
default: return false;
}
}
}
return false;
}

But I think that + should be included or . for floats

