View Single Post
Old 01/06/2020, 09:38 PM   #1
Vict9r
Big Clucker
 
Vict9r's Avatar
 
Join Date: Sep 2019
Posts: 99
Reputation: 8
Default CreateDynamic nao esta funcionado

Alguem me ajuda por favor...

pawn Code:
LoadCasas()
{
    for(new c = 1; c != MAX_DYNAMIC_HOUSES; ++c) if(c < MAX_DYNAMIC_HOUSES)
    {
        new file[50];

        format(file, 50, "/BORP/Casas/House%d.ini", c);

        if(DOF2_FileExists(file))
        {
            HOUSE_INFO[c][ID_CASA] = DOF2_GetInt(file, "ID CASA");
            HOUSE_INFO[c][EXISTE_CASA] = DOF2_GetBool(file, "EXISTE CASA");
            HOUSE_INFO[c][DONO] = DOF2_GetInt(file, "POSSUI PROPRIETARIO");
            format(HOUSE_INFO[c][PROPRIETARIO], 24, DOF2_GetString(file, "PROPRIETARIO"));
            format(HOUSE_INFO[c][ULTIMA_DATA], 15, DOF2_GetString(file, "ULTIMA DATA"));
            format(HOUSE_INFO[c][ULTIMA_HORA], 15, DOF2_GetString(file, "ULTIMA HORA"));
            HOUSE_INFO[c][CASA_POS][0] = DOF2_GetFloat(file, "POSICAO X");
            HOUSE_INFO[c][CASA_POS][1] = DOF2_GetFloat(file, "POSICAO Y");
            HOUSE_INFO[c][CASA_POS][2] = DOF2_GetFloat(file, "POSICAO Z");
            HOUSE_INFO[c][CASA_INTERIOR][0] = DOF2_GetFloat(file, "INTERIOR X");
            HOUSE_INFO[c][CASA_INTERIOR][1] = DOF2_GetFloat(file, "INTERIOR Y");
            HOUSE_INFO[c][CASA_INTERIOR][2] = DOF2_GetFloat(file, "INTERIOR Z");
            HOUSE_INFO[c][INTERIOR] = DOF2_GetInt(file, "INTERIOR DA CASA");
            HOUSE_INFO[c][VALOR_CASA] = DOF2_GetInt(file, "VALOR DA CASA");
            HOUSE_INFO[c][COFRE] = DOF2_GetInt(file, "COFRE DA CASA");
            HOUSE_INFO[c][CASA_TRANCADA] = DOF2_GetInt(file, "CASA TRANCADA");
            HOUSE_INFO[c][CASA_WORLD] = DOF2_GetInt(file, "CASA WORLD");
            new Float: X = HOUSE_INFO[c][CASA_POS][0];
            new Float: Y = HOUSE_INFO[c][CASA_POS][1];
            new Float: Z = HOUSE_INFO[c][CASA_POS][2];
            HOUSE_INFO[c][MAP_ICON] = CreateDynamicMapIcon(X, Y, Z, HOUSE_INFO[c][DONO] == 1 ? 32 : 31, 0, -1, -1, -1, 20.0);
            format(String, sizeof(String), "{C4C4C4}Casa Numero: %i\n{%s}%s\n{C4C4C4}Valor:{00FF40}%s.",c, HOUSE_INFO[c][DONO] == 1 ? ("FF8080") : ("00FF40"), HOUSE_INFO[c][DONO] == 1 ? ("Possui Proprietario") : ("A Venda"), FormatarNumero(HOUSE_INFO[c][VALOR_CASA]));
            HOUSE_INFO[c][LABEL] = CreateDynamic3DTextLabel(String, -1, X, Y, Z, 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0);
            HOUSE_INFO[c][PICKUP] = CreateDynamicPickup(HOUSE_INFO[c][DONO] == 1 ? PICKUP_CASA_COMPRADA : PICKUP_CASA_VENDA, 23, X, Y, Z, -1);
        }
    }
}
__________________
HostName: SERVIDOR HOSPEDADO NA VPS DA ExtremeStore!
Address: DISCORD ABAIXO:7777
Players: XX / 100
Ping: 32
Mode: BORP v1.1
Language: -
DISCORD: https://discord.gg/g6ZVQZC
Vict9r is offline   Reply With Quote