forward OnFraktionCheck(playerid);
public OnFraktionCheck(playerid)
{
new rows, string[512] = "Name\tTyp\tKasse\tMemberlimit", ints[5], tmp[32];
cache_get_row_count(rows);
for(new i; i < rows; i++)
{
cache_get_value_name_int(i, "fid", ints[0]);
cache_get_value(i, 1, tmp);
cache_get_value_name_int(i, "ftyp", ints[1]);
cache_get_value_name_int(i, "fkasse", ints[2]);
cache_get_value_name_int(i, "member", ints[3]);
cache_get_value_name_int(i, "applications", ints[4]);
format(string, sizeof(string), "%s\n(ID: %i)|%s\t%s\t%i$\t%i - %s",
string,ints[0],tmp,(ints[1]==0)?("keine Behörde"):("{33AA33}Behörde{FFFFFF}"), ints[2], ints[3], (ints[4]==0)?("{FF0000}Geschlossen"):("{33AA33}Offen"));
}
ShowPlayerDialog(playerid, DIALOG_FRAKTIONSLIST, DIALOG_STYLE_TABLIST_HEADERS, "existierende Fraktionen", string, "Ok","");
return 1;
}
Alles anzeigen