Portal SAMP
[Ajuda] CreateDynamic3DTextLabel sumindo - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] CreateDynamic3DTextLabel sumindo (/showthread.php?tid=944)



CreateDynamic3DTextLabel sumindo - AztecaJr - 18/03/2021

Percebi que os CreateDynamic3DTextLabel estão sumindo depois de algumas horas, alguém sabe o porque?


RE: CreateDynamic3DTextLabel sumindo - Levi.M - 18/03/2021

Sem código fica difícil lhe ajudar.


RE: CreateDynamic3DTextLabel sumindo - AztecaJr - 18/03/2021

Código PHP:
Business_CreateEntrance(BusID)
{
// Setup local variables
new Msg[1000], Float:xFloat:yFloat:zBusTypeIcon;

// Get the coordinates of the house's pickup (usually near the door)
ABusinessData[BusID][BusinessX];
ABusinessData[BusID][BusinessY];
ABusinessData[BusID][BusinessZ];
// Get the business-type and icon
BusType ABusinessData[BusID][BusinessType];
Icon ABusinessInteriors[BusType][IconID];

// Add a dollar-sign to indicate this business
ABusinessData[BusID][PickupID] = CreateDynamicPickup(12741xyz0);
// Add a map-icon depending on which type the business is
ABusinessData[BusID][MapIconID] = CreateDynamicMapIcon(xyzIcon000, -1150.0);

// Add a new 3DText at the business's location (usually near the door)
if (ABusinessData[BusID][Owned] == true)
{
        new FileAccount[100];
    format(FileAccountsizeof(FileAccount), PlayerFileABusinessData[BusID][Owner]);
    if(fexist(FileAccount))
    {
        new File:ArquivoContaStrConta[48], LineFromFile[100], ParameterName[50], ParameterValue[50];
format(StrConta48PlayerFileABusinessData[BusID][Owner]);
ArquivoConta fopen(StrContaio_read);
fread(ArquivoContaLineFromFile);
while (
strlen(LineFromFile) > 0)
{
    StripNewLine(LineFromFile);
sscanf(LineFromFile"s[50]s[50]"ParameterNameParameterValue);
if (
strcmp(ParameterName"UltimoLogin"false) == 0)
    format(ABusinessData[BusID][UltimoLogin], 30ParameterValue); // Ultimo Login Casa
fread(ArquivoContaLineFromFile);
}
fclose(ArquivoConta);
            
    
// Create the 3DText that appears above the business-pickup (displays the businessname, the name of the owner and the current level)
    format(Msg1000"%s\n{FFC978}Empresa ID: %i\nDono: %s\nEmpresa-level: %i\nTipo:%s\nUltimo Login: %s\n/entrar ou Aperte F"ABusinessData[BusID][BusinessName], BusIDABusinessData[BusID][Owner], ABusinessData[BusID][BusinessLevel],ABusinessInteriors[BusType][InteriorName], ABusinessData[BusID][UltimoLogin]);
    ABusinessData[BusID][DoorText] = CreateDynamic3DTextLabel(Msgcorcasaxy1.015.0);
        }
    }
else
{
// Create the 3DText that appears above the business-pickup (displays the price of the business and the earnings)
format(Msg280"%s\nPreco\nR$%s\nGanhos: R$%s\n/comprarempresa"ABusinessInteriors[BusType][InteriorName], ConvertMoney(ABusinessInteriors[BusType][BusPrice]), ConvertMoney(ABusinessInteriors[BusType][BusEarnings]));
ABusinessData[BusID][DoorText] = CreateDynamic3DTextLabel(Msgcorcasaxy1.015.0);
}