06.11.2014, 08:34
like this ._.
btw u can store all player name into one string..
DONT do what Runn3R told u...
btw u can store all player name into one string..
pawn Код:
CMD:checkwanted(playerid, params[])
{
new szString[500],ee[50];
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(playerAccount[i][WantedLevel] >= 1)
{
format(ee, sizeof (ee), "[W:%d][ID:%d]%s\n",playerAccount[i][WantedLevel],i,GetName(i));
strcat(szString, ee);
}
}
}
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Title",szString,"Find", "Close");
return 1;
}