Wanted list wont work
#8

Formating it will only return 1 player( if there is one or more wanted players ), since when you format it replaces the old string, as far i know.

EDIT: maybe this can work?
pawn Код:
CMD:wanted(playerid, params[])
{
    if(pTeam[playerid] == 7)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            new szString[128], szResult[512];
            if(GetPlayerWantedLevel(i) > 0)
            {
                format( szString, 128, "%s{E60000}%s {FFFFFF}(Wanted Level: {E60000}%d{FFFFFF})\n", string,Name(i), GetPlayerWantedLevel(i));
                strcat( szResult, szString, 512 );
            }
        }
       
        ShowPlayerDialog(playerid, DIALOG_WANTED, DIALOG_STYLE_LIST, "SASP - Wanted List", szResult, "Done", "");
    }
    else
        return SendClientMessage(playerid, COLOR_VIOLET, "INFO: {FFFFFF}You're not in the SASP.");
    return 1;
}
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: 1 Guest(s)