get playerid form name dosn't work
#4

pawn Код:
dcmd_id(playerid, params[])
{
    new pid, PlayerName[MAX_PLAYER_NAME+1];    
    if(!IsPlayerConnected(pid)) return SendClientMessage(playerid,COLOR_RED, "Player not found.");
    if(sscanf(params, "u", pid)) return SendClientMessage(playerid,COLOR_WHITE, "USAGE: /id <part of name>");
    GetPlayerName(pid, PlayerName, sizeof(PlayerName));
    SendClientMessage(playerid, 0xE89B5BBB, "Players found:");
    format(str, sizeof(str), "> %s (ID:%d) ", PlayerName, pid );
    SendClientMessage(playerid, COLOR_WHITE, str);
    return 1;
}
Reply


Messages In This Thread
get playerid form name dosn't work - by ScRipTeRi - 15.08.2013, 19:39
Re: get playerid form name dosn't work - by ScRipTeRi - 15.08.2013, 20:10
Re: get playerid form name dosn't work - by Dragonsaurus - 15.08.2013, 20:24
Re: get playerid form name dosn't work - by RedJohn - 15.08.2013, 20:34
Re: get playerid form name dosn't work - by Jefff - 15.08.2013, 21:05
Re: get playerid form name dosn't work - by ScRipTeRi - 15.08.2013, 22:26
Re: get playerid form name dosn't work - by Pottus - 15.08.2013, 22:37
Re: get playerid form name dosn't work - by ScRipTeRi - 16.08.2013, 10:10

Forum Jump:


Users browsing this thread: 1 Guest(s)