I tell you, I am creating a function that changes the colors in the band or faction that you are leading, but when I select the color the color is not applied to the band
*this is in a,?"ShowDialog (playerid, dialogid)"*
case CREW_MODIFY_COLOR:return ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Selecciona el nuevo color", DIALOG_CREATE_CREW_COLOR_String, "Cambiar", "Volver");
*and this is in,?"public OnDialogResponse (playerid, dialogid, response, listitem, const inputtext [])"*
case CREW_MODIFY_COLOR:
{
? ? if(!response) return ShowDialog(playerid, CONFIG_BANDA);
? ? if(PLAYER_INFO[playerid][pFaccion] == 0) return SendClientMessage(playerid, -1,"No perteneces a una banda.");
? ? if(PLAYER_INFO[playerid][pFaccion] == 1) return SendClientMessage(playerid, -1,"No puedes modificar el color de esta banda.");
if(PLAYER_INFO[playerid][pRango] != 8) return SendClientMessage(playerid, -1, "No tienes permiso.");
if(BandasInfo[ PLAYER_INFO[playerid][pFaccion] ][B_Atacando]) return SendClientMessage(playerid, -1, "No se puede cambiar el color cuando la banda est? en combate.");
? ? ? ? ? ? for(new id = 0; id < MAX_BANDAS; id)
{
if(BandasInfo[id][BColor] == RandomColors[listitem])
{
? ? SendClientMessage(playerid, -1, "Color en uso, selecciona otro color.");
return ShowDialog(playerid, CREW_MODIFY_COLOR);
}
}
? ? ? ? ? ? BandasInfo[PLAYER_INFO[playerid][pFaccion]][BColor] = RandomColors[listitem];
new r, g, b, a, new_territory_color;
HexToRGBA(BandasInfo[PLAYER_INFO[playerid][pFaccion]][BColor], r, g, b, a);
new_territory_color = RGBAToHex(r, g, b, 135);
for(new i = 0; i != MAX_T; i )
{
if(!TERRITORIOS_INFO[Territorio_Valido]) continue;
if(!TERRITORIOS_INFO[Territorio_Usado]) continue;
if((TERRITORIOS_INFO[Territorio_Banda] == BandasInfo[PLAYER_INFO[playerid][pFaccion]][bID]) || (TERRITORIOS_INFO[Territorio_BandaID] == BandasInfo[PLAYER_INFO[playerid][pFaccion]][bID]))
{
TERRITORIOS_INFO[Territorio_Color] = new_territory_color;
UpdateGangZoneColor(i);
}
}
SendClientMessage(playerid,-1,"El color de tu banda fue cambiado correctamente.");
new DB_Query[256];
mysql_format(handle_db, DB_Query,sizeof(DB_Query), "UPDATE `facciones` SET `Color` = '%d' WHERE `id`='%d';", BandasInfo[PLAYER_INFO[playerid][pFaccion]][BColor], BandasInfo[PLAYER_INFO[playerid][pFaccion]][bID]);
mysql_query(handle_db, DB_Query, false);
mysql_format(handle_db, DB_Query, sizeof(DB_Query), "UPDATE `territorios` SET `Color`='%d' WHERE `Banda`='%d'", new_territory_color, PLAYER_INFO[playerid][pFaccion]);
mysql_query(handle_db, DB_Query, false);
print("actualiza3");
ShowDialog(playerid, CONFIG_BANDA);
return 1;
}
And inside the game this happens:

I select the color and nothing happens

And the console does not show errors
