[Help] ReturnPlayerName - 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: [Help] ReturnPlayerName (
/showthread.php?tid=81010)
[Help] ReturnPlayerName -
joeri55 - 07.06.2009
This is a part of my script from /cuff:
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(ReturnPlayerName(i), name, true) != -1 || (IsPlayerConnected(i) && strval(name) == i && isNumeric(name))) {
return i;
}
}
return -1;
}
But if I compile it:
pawn Код:
C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(21039) : error 017: undefined symbol "ReturnPlayerName"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: [Help] ReturnPlayerName -
JoshTheBoss - 07.06.2009
why did you start a new post, couldnt it be located in ur other "cuff" post?
Re: [Help] ReturnPlayerName -
joeri55 - 07.06.2009
No one responded there on that question so maybe other people know this problem and don't want to respond on the /cuff topic.
Re: [Help] ReturnPlayerName -
Klutty - 07.06.2009
You shoudlnt make multiple topics for one question.
Re: [Help] ReturnPlayerName -
JoshTheBoss - 07.06.2009
Quote:
Originally Posted by Klutty
You shoudlnt make multiple topics for one question.
|
I mentioned that first!
Re: [Help] ReturnPlayerName -
joeri55 - 07.06.2009
Does anyone knows the fix! I really need it!
i ned fix pls
Re: [Help] ReturnPlayerName -
lol2112 - 07.06.2009
Read your error. What does it say: "Undefined symbol - ReturnPlayerName"; now I wonder what the problem could possibly be...you clearly don't have a function called ReturnPlayerName defined in your script.
Re: [Help] ReturnPlayerName -
Correlli - 07.06.2009
Search for ReturnPlayerName, it's made by ****** if that helps you.
I'm 99.9% sure you'll find it by using
this.