SA-MP Forums Archive
Where to get IsNumeric? - 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: Where to get IsNumeric? (/showthread.php?tid=73057)



Where to get IsNumeric? - Cabby - 12.04.2009

Yeah, as the title says. Cause the link on Wiki leads to a empty Pastebin.i've searched for it, and i can't find it. So if you could show the code, i would be happy


Re: Where to get IsNumeric? - Backwardsman97 - 12.04.2009

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;
}



Re: Where to get IsNumeric? - MenaceX^ - 12.04.2009

Or get utils include.


Re: Where to get IsNumeric? - Cabby - 12.04.2009

Well many thanks for that But now i got another problem, I've made this Adminstration Script (Wiki tutorial)
and when i compile it, it show nothing and crashes. Heres the code:


http://pastebin.com/f2917a3ae





Re: Where to get IsNumeric? - Danut - 12.04.2009

enum info
}
Adminlevel
}


Re: Where to get IsNumeric? - Cabby - 12.04.2009

Quote:
Originally Posted by MoroJr™
enum info
}
Adminlevel
}
And what about that? It is there?