SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] CreateDynamic ... Me ajudem '- SmokiieGamer Português/Portuguese 15 06/09/2016 06:03 PM
[Ajuda] MySql está setando o e-mail más não está chamando dialog [BOPE]Seu._.Madruga Português/Portuguese 2 03/03/2014 06:44 PM
[Ajuda] Estorou o limite de CreateObject do servidor e mudei para CreateDynamic Object, mais agora o objeto so aparece... RicardoMaia Português/Portuguese 3 12/01/2014 07:36 PM
Createdynamic mapicon jop9888 Scripting Help 3 02/05/2012 12:46 PM


All times are GMT. The time now is 09:19 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.