05.08.2011, 20:10
Quote:
You should not ignore case sens., there can be player with name AlEx_OBanDo or something else like this.
|
pawn Код:
new name[MAX_PLAYER_NAME];
for( new i=0; i<MAX_PLAYERS; i++ )
{
if( IsPlayerConnected(i) && !IsPlayerNPC(i) )
{
GetPlayerName (i, name, sizeof(name) );
if(!strcmp(name, "Alex_Obando", false)) return SendClientMessage(playerid, -1, "Alex is connected.");
}
}