23.12.2012, 12:33
Can anybody help me with the following please? I get an error from this part of the script i'm using:
From this I get the following error:
pawn Код:
stock IsNumeric(string[]) { for (new i = 0, j = strlen(string); i < j; i++) if (string[i] > '9' || string[i] < '0') return 0; return 1; }
stock ReturnPlayerID(name[]) {
for(new i = 0; i < MAX_PLAYERS; i++) {
if(strfind(PlayerName(i), name, true) != -1 || (IsPlayerConnected(i) && strval(name) == i && isNumeric(name))) {
return i;
}
}
return -1;
}
Код:
"RP.pwn(5454) : error 017: undefined symbol "isNumeric"