17.06.2013, 22:16
Hi,
I use strcat to make dynamic dialog but it not works.
This is my code :
Ingame, when i type the command, the server said "SERVER: Unknown command."
I didn't found the solution, please help me.
Thanks.
I use strcat to make dynamic dialog but it not works.
This is my code :
Код:
stock GetZones(playerid)
{
new zonesa[1200], string[128];
for(new g; g<=NB_GANGZONES; g++)
{
string = "";
if(Zones[g][Team] == 1)
{
format(string, sizeof(string), "{00FF00}%s\n", Zones[g][Nom]);
strcat(zonesa, string, sizeof(string));
}
else if(Zones[g][Team] == 2)
{
format(string, sizeof(string), "{800080}%s\n", Zones[g][Nom]);
strcat(zonesa, string, sizeof(string));
}
else if(Zones[g][Team] == 3)
{
format(string, sizeof(string), "{F4F400}%s\n", Zones[g][Nom]);
strcat(zonesa, string, sizeof(string));
}
else if(Zones[g][Team] == 4)
{
format(string, sizeof(string), "{00FFFF}%s\n", Zones[g][Nom]);
strcat(zonesa, string, sizeof(string));
}
}
ShowPlayerDialog(playerid, DIALOG_ZONES, DIALOG_STYLE_LIST, "Choix du spawn", zonesa, "Valider", "Annuler");
return 1;
}
I didn't found the solution, please help me.
Thanks.


