Loop show all player job
#1

waaaaaa help me :P pls

Screen:



pawn Код:
CMD:pjobs(playerid, params[])
{
    new str[50], STR[512];
    strcat(STR, "Name(ID)\tJob\n");
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(pInfo[i][USER_LOGGED_IN] == true)
        format(str, sizeof(str),"%s(%i)\t\%s\n", GetPlayerName(i), i, GetClassName(i));
        if(strlen(str) < 1) strdel(str, 0, 50);
        strcat(STR, str);
    }
    ShowPlayerDialog(playerid, DIALOG_PJOBS, DIALOG_STYLE_TABLIST_HEADERS, ""COL_BLUE"Players Jobs", STR, "Exit", "");
    return 1;
}
Reply


Messages In This Thread
Loop show all player job - by Cerealguy - 20.11.2016, 16:24
Re: Loop show all player job - by Konstantinos - 20.11.2016, 16:31
Re: Loop show all player job - by Kaliber - 20.11.2016, 16:58
Respuesta: Re: Loop show all player job - by Cerealguy - 20.11.2016, 17:33

Forum Jump:


Users browsing this thread: 1 Guest(s)