Can someone help me with this?
#1

Hello.. I have a problem with one function in my GM so can you please help me?
Function:
pawn Код:
stock GetPlayerID(const Name[])
{
    for(new i; i<MAX_PLAYERS; i++)
    {
      if(IsPlayerConnected(i))
      {
        new pName[MAX_PLAYER_NAME];
        GetPlayerName(i, pName, sizeof(pName));
        if(strcmp(Name, pName, true)==0)
        {
          return i;
            }
        }
    }
    return -1;
}
And my error:
Код:
error 035: argument type mismatch (argument 1)
On the line:
pawn Код:
if(strcmp(Name, pName, true)==0)
And sorry about the indentation :P
Reply


Messages In This Thread
Can someone help me with this? - by Fj0rtizFredde - 11.05.2009, 16:23
Re: Can someone help me with this? - by Weirdosport - 11.05.2009, 17:08
Re: Can someone help me with this? - by Fj0rtizFredde - 11.05.2009, 17:33
Re: Can someone help me with this? - by Weirdosport - 11.05.2009, 17:39
Re: Can someone help me with this? - by Fj0rtizFredde - 11.05.2009, 17:49

Forum Jump:


Users browsing this thread: 3 Guest(s)