It Online Show ID not Playername (ID)
#1

So when I do /jailed it only shows (ID:0) not the whole name and id like this Playername (ID:2)

pawn Код:
dcmd_jailed(playerid,params[])
{
    #pragma unused params
    if(AccInfo[playerid][LoggedIn] == 1)
    {
        if(AccInfo[playerid][Level] >= 1)
        {
            new Count, str[512];
            for(new i; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i) && AccInfo[i][Jailed])
                {
                    format(str, sizeof(str), "%s (ID: %d)\n", i, PlayerName2(i));
                    Count++;
                }
            }
            if(Count == 0) strcat(str, "No players are Jailed!\n");
            return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Jailed Players", str, "OK", "");
        }
        else return ErrorMessages(playerid, 1);
    }
    else return SendClientMessage(playerid, 0xFFFFFFFF,"{FF0000}ERROR: You must be logged in to use this commands");
}
Reply


Messages In This Thread
It Online Show ID not Playername (ID) - by kbalor - 13.08.2012, 17:49
Re: It Online Show ID not Playername (ID) - by ddnbb - 13.08.2012, 17:58
Re: It Online Show ID not Playername (ID) - by Jefff - 13.08.2012, 18:05
Re: It Online Show ID not Playername (ID) - by kbalor - 13.08.2012, 18:06
Re: It Online Show ID not Playername (ID) - by kbalor - 13.08.2012, 18:10
Re: It Online Show ID not Playername (ID) - by Jefff - 13.08.2012, 18:13
Re: It Online Show ID not Playername (ID) - by ddnbb - 13.08.2012, 18:14
Re: It Online Show ID not Playername (ID) - by kbalor - 13.08.2012, 18:30
Re: It Online Show ID not Playername (ID) - by Kindred - 13.08.2012, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)