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: IsNumeric (
/showthread.php?tid=276415)
IsNumeric -
ZmaXy - 13.08.2011
Код:
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");
Re: IsNumeric -
KfirRP - 13.08.2011
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;
}
Re: IsNumeric -
ZmaXy - 13.08.2011
Thanks
Re: IsNumeric -
KfirRP - 13.08.2011
Sure. Glad to help you
Re: IsNumeric -
[MG]Dimi - 13.08.2011
I think it's called dutils.inc, not utils.inc