07.09.2015, 13:56
PHP код:
CMD:list(playerid, params[])
{
new string[200], string2[000];
new rNameFile[64];
format(rNameFile, sizeof(rNameFile), "/CorridasCriadas/%s.txt");
TotalRaces = dini_Int(rNameFile, "TotalRaces");
Loop(x, TotalRaces)
{
format(string, sizeof(string), "Corrida_%d", x), strmid(CorridaNome[x], dini_Get(rNameFile, string), 0, 20, sizeof(CorridaNome));
format(string2, sizeof(string2), "%s{FF0000}%s\n", string2, CorridaNome[x]);
ShowPlayerDialog(playerid, 8855, DIALOG_STYLE_LIST, "{FFF000}Corridas:", string2, "Fechar", "");
}
return 1;
}