02.06.2010, 16:06
I ca use ither 1 but i stil have this
In That gl_ file i took out
and when i compile i only have 1 error:
Код:
../include/gl_common.inc(116) : error 021: symbol already defined: "isNumeric" D:\GTA San Andreas\Gamemodes\newcnr.pwn(845) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(847) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(849) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(851) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(853) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(855) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(857) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(859) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(860) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(862) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(864) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(866) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(868) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(870) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(1927) : error 047: array sizes do not match, or destination array is too small Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Код:
stock isNumeric(const string[]) { new length=strlen(string); if (length==0) return false; for (new i = 0; i < length; i++) { if ( (string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+') // Not a number,'+' or '-' || (string[i]=='-' && i!=0) // A '-' but not at first. || (string[i]=='+' && i!=0) // A '+' but not at first. ) return false; } if (length==1 && (string[0]=='-' || string[0]=='+')) return false; return true; }
Код:
D:\GTA San Andreas\Gamemodes\newcnr.pwn(845) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(847) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(849) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(851) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(853) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(855) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(857) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(859) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(860) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(862) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(864) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(866) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(868) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(870) : warning 202: number of arguments does not match definition D:\GTA San Andreas\Gamemodes\newcnr.pwn(1927) : error 047: array sizes do not match, or destination array is too small Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.