[SOLVED]Help with IsNumeric , Gives Error
#1

Error Line
pawn Код:
if (IsNumeric(strval(params)))
IsNumeric Code :

pawn Код:
IsNumeric(const string[])
{
for (new i = 0, j = strlen(string); i < j; i++)
{
if (string[i] > '9' || string[i] < '0') return 0;
}
return 1;
}
error :
Код:
(112) : error 035: argument type mismatch (argument 1)
Reply
#2

The argument that you pass is different from the argument that the
function expects, and the compiler cannot convert the passed-in
argument to the required type.
Reply
#3

Quote:
Originally Posted by Kaju
The argument that you pass is different from the argument that the
function expects, and the compiler cannot convert the passed-in
argument to the required type.
how to fix it?

my new code :
pawn Код:
new amout=strval(params);
Reply
#4

pawn Код:
if( IsNumeric( params ) )
Reply
#5

Quote:
Originally Posted by ZeRo_HUN
pawn Код:
if( IsNumeric( params ) )
ty
Reply


Forum Jump:


Users browsing this thread: