SA-MP Forums Archive
checking the string? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: checking the string? (/showthread.php?tid=121230)



checking the string? - AiVAMAN - 16.01.2010

how to check is the string number?


Re: checking the string? - [HiC]TheKiller - 16.01.2010

pawn Код:
stock IsNumeric(string1[])
{
    for (new i = 0, j = strlen(string1); i < j; i++)
    {
        if (string1[i] > '9' || string1[i] < '0')
        {
            return 0;
        }
    }
    return 1;
}



Re: checking the string? - AiVAMAN - 16.01.2010

Thank you.