22.04.2012, 02:47
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;
}