[Ajuda] 3D Label
#5

Funзгo:

PHP код:
Update3DTextLabelText(Text3D:idcolortext[]) 
https://sampwiki.blast.hk/wiki/Update3DTextLabelText

* Tem que criar o house3DText[MAX_PLAYERS] para atualizar o Text *

Exemplo:

PHP код:
CMD:criarcasa(playeridparams[])
{
    
format(stringsizeof(string), "Casa ID: %d", ...);
    
house3DText[playerid] = Create3DTextLabel(string, ...);
    return 
1;
}
if(
dini_Int(house"TemDono") == 0)
{
    
HousePickup[houseid] = CreatePickup(127323iconXiconYiconZ);
    
housemapicon[houseid] = CreateDynamicMapIcon(iconXiconYiconZ31, -1, -1, -1, -150.0);
    
format(stringsizeof(string), "Dono: %s\nCasa ID: %d\nPreзo: $%d\n/InfoCasa"hInfo[houseid][aName], dini_Int(house"Casaid"), hInfo[houseid][Cost]);
    
Update3DTextLabelText(house3DText[playerid], 0xFFFFFFFFstring);
}
else
{
    
HousePickup[houseid] = CreatePickup(1952223iconXiconYiconZ);
    
housemapicon[houseid] = CreateDynamicMapIcon(iconXiconYiconZ32, -1, -1, -1, -150.0);
    
format(stringsizeof(string), "Dono: %s\nCasa ID: %d\nPreзo: $%d\n/InfoCasa"hInfo[houseid][aName], dini_Int(house"Casaid"), hInfo[houseid][Cost]);
    
Update3DTextLabelText(house3DText[playerid], 0xFFFFFFFFstring);

Reply


Messages In This Thread
3D Label - by Geremias1533 - 02.02.2019, 17:12
Re: 3D Label - by AutoMatic2 - 02.02.2019, 18:05
Re: 3D Label - by Geremias1533 - 02.02.2019, 18:48
Re: 3D Label - by ipsLuan - 02.02.2019, 18:56
Re: 3D Label - by AutoMatic2 - 02.02.2019, 19:18
Re: 3D Label - by NWDMadara - 02.02.2019, 20:04
Re: 3D Label - by AutoMatic2 - 02.02.2019, 20:33

Forum Jump:


Users browsing this thread: 3 Guest(s)