Help Please
#9

Quote:
Originally Posted by Gh0sT_
Посмотреть сообщение
You should not ignore case sens., there can be player with name AlEx_OBanDo or something else like this.
he is right... just take 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.");
    }
}
the diffrence is in the last line... i turned "true" into "false" so it will notice between "a" and "A"
Reply


Messages In This Thread
Help Please - by Alex_Obando - 05.08.2011, 18:20
Respuesta: Help Please - by Alex_Obando - 05.08.2011, 18:54
Re: Help Please - by Rocketeer - 05.08.2011, 18:55
Re: Help Please - by WoodPecker - 05.08.2011, 18:56
Respuesta: Help Please - by Alex_Obando - 05.08.2011, 18:57
AW: Respuesta: Help Please - by Nero_3D - 05.08.2011, 19:07
Re: Help Please - by iPLEOMAX - 05.08.2011, 19:08
Re: Help Please - by Gh0sT_ - 05.08.2011, 19:10
Re: Help Please - by omer5198 - 05.08.2011, 20:10

Forum Jump:


Users browsing this thread: 2 Guest(s)