24.07.2016, 20:03
pawn Код:
Dialog:SEARCH_KILLS(playerid, response, listitem, inputtext[])
{
if(response)
{
new string[1000], count;
for(new i = 0; i < MAX_KILLS; i ++)
{
if(kInfo[i][KillExists] && !strcmp(kInfo[i][Name], inputtext, true))
{
format(string, sizeof(string), "%s%s\t%s\n", string, cInfo[i][Date], cInfo[i][Acts]);
count ++;
}
}
if(count)
{
Dialog_Show(playerid, SHOW_KILLS, DIALOG_STYLE_TABLIST, "Lista de asesinatos", string, "Seleccionar", "Cancelar");
}
else
{
SendClientMessage(playerid, -1, "Ingresaste un nombre invбlido.");
}
}
return true;
}

