error with this function
#1

I am creating a furniture system and I am dealing with this problem a few days ago that has me very angry. Apparently there is no error, I checked everything and it would seem to be all right.
When opening the dialog when there is no saved piece of furniture it appears well (all the slots appear in "vacнo") but when you set some id of a piece of furniture in one or all the variables of "HouseInfo [house] [hMueble]" no dialog appears . If they could help me, I would thank them for life.

Код:
forward MueblesGuardados(playerid); //Muestra los muebles guardados al jugador
public MueblesGuardados(playerid)
{
    new dialog[1024], string[128];
    new casa = GetPlayerDentroCasa(playerid);
	for(new i = 0; i < 5; i++)
	{
		new slot = HouseInfo[casa][hMueble][i];
		if(slot == 0){format(string, sizeof(string), "\n{b0b0b0}%s", MuebleInfo[slot][NombreMueble]);}
		else{format(string, sizeof(string), "\n{FFFFFF}%s", MuebleInfo[slot][NombreMueble]);}
		strcat(dialog, string);
		SaveCasa(casa);
	}
	ShowPlayerDialog(playerid, 78, DIALOG_STYLE_LIST, "Muebles guardados", dialog, "Seleccionar", "Cerrar");
	return 1;
}
Reply


Messages In This Thread
error with this function - by Wayzzar - 23.11.2017, 15:42
Re: error with this function - by Swankeh - 23.11.2017, 17:21
Re: error with this function - by Wayzzar - 24.11.2017, 21:51

Forum Jump:


Users browsing this thread: 2 Guest(s)