[Help] ReturnPlayerName
#1

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.
Reply
#2

why did you start a new post, couldnt it be located in ur other "cuff" post?
Reply
#3

No one responded there on that question so maybe other people know this problem and don't want to respond on the /cuff topic.
Reply
#4

You shoudlnt make multiple topics for one question.
Reply
#5

Quote:
Originally Posted by Klutty
You shoudlnt make multiple topics for one question.
I mentioned that first!
Reply
#6

Does anyone knows the fix! I really need it!

i ned fix pls
Reply
#7

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.
Reply
#8

Search for ReturnPlayerName, it's made by ****** if that helps you.

I'm 99.9% sure you'll find it by using this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)