11.05.2009, 16:23
Hello.. I have a problem with one function in my GM so can you please help me?
Function:
And my error:
On the line:
And sorry about the indentation :P
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;
}
Код:
error 035: argument type mismatch (argument 1)
pawn Код:
if(strcmp(Name, pName, true)==0)