06.11.2014, 08:05
(
Последний раз редактировалось buburuzu19; 06.11.2014 в 10:03.
)
PROBLEM SOLVED.
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;
}
CMD:checkwanted(playerid, params[])
{
new string[128],pname[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(playerAccount[i][WantedLevel] >= 1)
{
GetPlayerName(i, pname, sizeof(pname));
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Title",string,"Find", "Close");
format(string, sizeof (string), "[W:%d][ID:%d]%s",playerAccount[i][WantedLevel],i,pname);
return 1;
}
}
}
return 1;
}