FINDID command refusing to work
#1

pawn Код:
CMD:findid(playerid, params[])
{
    new giveplayerid, giveplayer[MAX_PLAYER_NAME], string[256];
    if(sscanf(params, "u", giveplayerid)) return SCM(playerid, COLOR_GREY, "USAGE: /findid [playername]");
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        format(string, sizeof(string), "Player Name: %s (Player-ID: %d).", giveplayer, i);
        SCM(playerid, COLOR_LIGHTRED, string);
    }
    return 1;
}
Can someone correct me why that displays hundreds of IDS?, and not just the player id?
Reply


Messages In This Thread
FINDID command refusing to work - by UnknownGamer - 28.02.2013, 17:48
Re: FINDID command refusing to work - by Mance - 28.02.2013, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)