IsNumeric
#1

Код:
pwn(316) : error 017: undefined symbol "IsNumeric"
How to fix this

Line:

Код:
if(!IsNumeric(inputtext)) return ShowPlayerDialog(playerid, BOJA_MOTORA, DIALOG_STYLE_INPUT, "Odaberi ID boje u koju zelis prefarbati vozilo:","Napomena: IDovi boje krecu se od broja 0 do broja 126.", "U redu", "Odustani");
Reply
#2

Option no.1: Define IsNumeric by creating it's stock.
Option no.2: Use the include utils.inc.

here's the stock
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;
}
Reply
#3

Thanks
Reply
#4

Sure. Glad to help you
Reply
#5

I think it's called dutils.inc, not utils.inc
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)