[ Need help here ] - 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)
+--- Thread: [ Need help here ] (
/showthread.php?tid=331883)
[ Need help here ] -
SpotS - 06.04.2012
Код:
C:\Users\Daniel\SanAndreas Muliplayer\server\gamemodes\ricaniel.pwn(464) : error 017: undefined symbol "IsNumeric"
why?
Re: [ Need help here ] -
jotan. - 06.04.2012
Can you give us the code ?
Re: [ Need help here ] -
SpotS - 06.04.2012
Quote:
Originally Posted by jotan.
Can you give us the code ?
|
same as usual
even if i put
pawn Код:
if(!IsNumeric(inputtext)) return 1;
still same
Re: [ Need help here ] -
Faisal_khan - 06.04.2012
Add this at the bottom:
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: [ Need help here ] -
DR3AD - 06.04.2012
download this file
http://dracoblue.net/download/dutils-110/30/ Credits to Dracoblue
Then, it the top of your script put
Should work
Re: [ Need help here ] -
SpotS - 06.04.2012
Quote:
Originally Posted by Faisal_khan
Add this at the bottom:
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; }
|
oh thank you
Re: [ Need help here ] -
Faisal_khan - 06.04.2012
Welcome