02.02.2019, 19:18
Funзгo:
https://sampwiki.blast.hk/wiki/Update3DTextLabelText
* Tem que criar o house3DText[MAX_PLAYERS] para atualizar o Text *
Exemplo:
PHP код:
Update3DTextLabelText(Text3D:id, color, text[])
* Tem que criar o house3DText[MAX_PLAYERS] para atualizar o Text *
Exemplo:
PHP код:
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);
}