error 017: undefined symbol "GetPlayerId" !!!??? What the ...
#5

Add this to your GM/FS

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)