Help with Scripting - 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: Help with Scripting (
/showthread.php?tid=401589)
Help with Scripting -
lewis_junior - 23.12.2012
Can anybody help me with the following please? I get an error from this part of the script i'm using:
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;
}
From this I get the following error:
Код:
"RP.pwn(5454) : error 017: undefined symbol "isNumeric"