isNumeric
#1

C:\Users\User\Desktop\609_1031-FS-rRace_v\rRace_v02a Rus\filterscripts\rRace.pwn(376) : error 017: undefined symbol "isNumeric"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Код HTML:
	        if(isNumeric(inputtext))
Reply
#2

It's meant to be "IsNumeric" (note case)
Reply
#3

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;
}
add this to somewhere then try to compile...
Reply
#4

it's IsNumeric not isNumeric I guess.
Reply
#5

Quote:
Originally Posted by BlackBomb
Посмотреть сообщение
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;
}
add this to somewhere then try to compile...
added in the end of the script, nothing has changed as usual error writing!
Reply
#6

understood, thank you all
Reply
#7

hillko, did you actually try IsNumeric as suggested?
EDIT: Disregard as per above post.
Reply
#8

Sorry one thing,
remove that, that i tell before and try this it will work:-

pawn Код:
stock isNumeric(string[]) //your format is is i maked that Is so now try
{
    for (new i = 0, j = strlen(string); i < j; i++)
    {
        if (string[i] > '9' || string[i] < '0') return 0;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)