if(dini_Int(house, "TemDono") == 0)
{
HousePickup[houseid] = CreatePickup(1273, 23, iconX, iconY, iconZ);
housemapicon[houseid] = CreateDynamicMapIcon(iconX, iconY, iconZ, 31, -1, -1, -1, -1, 50.0);
format(string, sizeof(string), "Casa ( ID: %d )\nValor: $%d\n/InfoCasa ", dini_Int(house, "Casaid"), hInfo[houseid][Cost]);
Create3DTextLabel(string, 0xFFFFFFFF, iconX, iconY, iconZ+0.50, 18.0, 0, 1);
}
else if(dini_Int(house, "TemDono") == 1)
{
HousePickup[houseid] = CreatePickup(19522, 23, iconX, iconY, iconZ);
housemapicon[houseid] = CreateDynamicMapIcon(iconX, iconY, iconZ, 32, -1, -1, -1, -1, 50.0);
format(string, sizeof(string), "Casa ( ID: %d )\n Valor: $%d\n/InfoCasa ", dini_Int(house, "Casaid"), hInfo[houseid][Cost]);
Create3DTextLabel(string, 0xFFFFFFFF, iconX, iconY, iconZ+0.50, 18.0, 0,1);
}
}
if(dini_Int(house, "TemDono") == 0)
{
HousePickup[houseid] = CreatePickup(1273, 23, iconX, iconY, iconZ);
housemapicon[houseid] = CreateDynamicMapIcon(iconX, iconY, iconZ, 31, -1, -1, -1, -1, 50.0);
format(string, sizeof(string), "Dono: %s\nCasa ID: %d\nPreзo: $%d\n/InfoCasa", hInfo[houseid][aName], dini_Int(house, "Casaid"), hInfo[houseid][Cost]);
Create3DTextLabel(string, 0xFFFFFFFF, iconX, iconY, iconZ+0.50, 18.0, 0, 1);
}
else
{
HousePickup[houseid] = CreatePickup(19522, 23, iconX, iconY, iconZ);
housemapicon[houseid] = CreateDynamicMapIcon(iconX, iconY, iconZ, 32, -1, -1, -1, -1, 50.0);
format(string, sizeof(string), "Dono: %s\nCasa ID: %d\nPreзo: $%d\n/InfoCasa", hInfo[houseid][aName], dini_Int(house, "Casaid"), hInfo[houseid][Cost]);
Create3DTextLabel(string, 0xFFFFFFFF, iconX, iconY, iconZ+0.50, 18.0, 0,1);
}
Update3DTextLabelText(Text3D:id, color, text[])
CMD:criarcasa(playerid, params[])
{
format(string, sizeof(string), "Casa ID: %d", ...);
house3DText[playerid] = Create3DTextLabel(string, ...);
return 1;
}
if(dini_Int(house, "TemDono") == 0)
{
HousePickup[houseid] = CreatePickup(1273, 23, iconX, iconY, iconZ);
housemapicon[houseid] = CreateDynamicMapIcon(iconX, iconY, iconZ, 31, -1, -1, -1, -1, 50.0);
format(string, sizeof(string), "Dono: %s\nCasa ID: %d\nPreзo: $%d\n/InfoCasa", hInfo[houseid][aName], dini_Int(house, "Casaid"), hInfo[houseid][Cost]);
Update3DTextLabelText(house3DText[playerid], 0xFFFFFFFF, string);
}
else
{
HousePickup[houseid] = CreatePickup(19522, 23, iconX, iconY, iconZ);
housemapicon[houseid] = CreateDynamicMapIcon(iconX, iconY, iconZ, 32, -1, -1, -1, -1, 50.0);
format(string, sizeof(string), "Dono: %s\nCasa ID: %d\nPreзo: $%d\n/InfoCasa", hInfo[houseid][aName], dini_Int(house, "Casaid"), hInfo[houseid][Cost]);
Update3DTextLabelText(house3DText[playerid], 0xFFFFFFFF, string);
}
Originally Posted by NWDMadara
O correto nгo seria definir a House3DText pelo id da casa?
|
new Text3D:house3DText[MAX_HOUSES];
//
house3DText[houseid]
...