Wanted list wont work
#1

I have made a wanted list for my server and it wont work as I want it to, it doesn't loop through all the wanted players and list them;
pawn Код:
CMD:wanted(playerid, params[])
{
    if(pTeam[playerid] == 7) {
        for(new i = 0; i < MAX_PLAYERS; i++) {
            if(GetPlayerWantedLevel(i) > 0) {
                new string[128];
                format(string, sizeof(string), "{E60000}%s {FFFFFF}(Wanted Level: {E60000}%d{FFFFFF})\n", Name(i), GetPlayerWantedLevel(i));
                ShowPlayerDialog(playerid, DIALOG_WANTED, DIALOG_STYLE_LIST, "SASP - Wanted List", string, "Done", "");
            }
        }
    }
    else {
        SendClientMessage(playerid, COLOR_VIOLET, "INFO: {FFFFFF}You're not in the SASP.");
    }
    return 1;
}
It only returns one player who is wanted.
Reply


Messages In This Thread
Wanted list wont work - by Luis- - 21.04.2012, 21:52
Re: Wanted list wont work - by [MG]Dimi - 21.04.2012, 22:14
Re: Wanted list wont work - by PrawkC - 21.04.2012, 22:15
Re: Wanted list wont work - by ReneG - 22.04.2012, 02:43
Re: Wanted list wont work - by MP2 - 22.04.2012, 02:47
Respuesta: Wanted list wont work - by Marricio - 22.04.2012, 03:35
Re: Wanted list wont work - by MP2 - 22.04.2012, 03:42
Respuesta: Wanted list wont work - by Marricio - 22.04.2012, 03:46

Forum Jump:


Users browsing this thread: 2 Guest(s)