Wanted list wont work
#5

If you indented with a style that was actually readable, you'd realise your mistake. Just a tip.

pawn Код:
CMD:wanted(playerid, params[])
{
    if(pTeam[playerid] != 7) return SendClientMessage(playerid, COLOR_VIOLET, "INFO: {FFFFFF}You're not in the SASP.");
    new dstring[500]; // Work out what size you need
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!GetPlayerWantedLevel(i)) continue;
        format(dstring, sizeof(dstring), "%s{E60000}%s {FFFFFF}(Wanted Level: {E60000}%d{FFFFFF})\n", dstring, Name(i), GetPlayerWantedLevel(i));
    }
    ShowPlayerDialog(playerid, DIALOG_WANTED, DIALOG_STYLE_LIST, "SASP - Wanted List", dstring, "Done", "");
    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)