warning 213: tag mismatch
#1

Hello! Please help! How to fix warning?
Код:
 warning 213: tag mismatch
Код:
stock GetPlayerID(const name[MAX_PLAYER_NAME])
{
	new id;
	for(new i; i < MAX_PLAYERS; i++)
	{
	    if(!IsPlayerConnected(i)) continue;
	    if(!strcmp(Nev(i), name, 0, MAX_PLAYER_NAME)) //<<<<< WARNING 
	    {
	        id = i;
	        break;
	    }
	}
	return id;
}
stock Nev(playerid)
{
	new pName[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pName, sizeof(pName));
	return pName;
}
Reply
#2

EDIT:
if(!strcmp(Nev(i), name)) why don't you use just these two parameters.
Reply
#3

so good. thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)