[AJUDA] Colocando essa conce no GM
#1

Entгo, a um topico atras eu pedi ajuda de conce.. pra min ajudarem em uma me ajudaram ..
Obrigado.
e eu coloquei no GM Mais deu erro. me ajudem o modo de colocar certo, pois nao sei em que errei.

pawn Код:
#include <a_samp>
#include <dini>


#define PASTA                                       "Concessionaria/%s.if"
#define MAX_CONCE                                   MAX_CARROS//(005)
#define MAX_CARROS                                  (100)
#define MAX_cNAME                                   (50)
#define MAX_CARSP                                   (02) // Mбximo de carros por player. ( NAO MUDAR ).


#define DIAL_SELCOR2_CAR1                           100
#define DIAL_SELCORCAR1                             200
#define DIAL_SELCORCAR2                             400
#define DIALOG_VENDCAR                              500
#define DIALOG_CARROS                               600
#define DALOG_SELECT_CAR                            700
#define DALOG_SELECT_CAR_VIS                        800
#define DIALOG_VEHICLE                              900
#define DIAL_SELCOR                                 1000
#define DIAL_SELCOR1_CAR1                           2000
#define DIAL_SELCOR1_CAR2                           3000
#define DIAL_SELCOR2_CAR2                           4000


enum Concecs
{
    c_Veiculos[MAX_CARROS],
    c_Nome[MAX_cNAME],
    Float:c_PickX,
    Float:c_PickY,
    Float:c_PickZ,
    Dono[24],
    Pickup,
    Carro[2],
    ID
};

enum carro_s
{
    Preco,
    Modelo,
    vModelo
};

enum _plyaer
{
    bool:Comprando,
    vModelo,
    iModelo1,
    iModelo2,
    Carro1,
    Carro2,
    Money1,
    Money2,
    Cor1Car1,
    Cor2Car1,
    Cor1Car2,
    Cor2Car2,
    Float:Angulo1,
    Float:Angulo2,
    Float:carro1x,
    Float:carro1y,
    Float:carro1z,
    Float:carro2x,
    Float:carro2y,
    Float:carro2z

};

new
    VConcModelo[MAX_PLAYERS],
    bool:VisualizandoModelo[MAX_PLAYERS],
    pInfo[MAX_PLAYERS][_plyaer],
    iCarro[MAX_CARROS][carro_s],
    iConce[MAX_CONCE][Concecs],
    FotherCorrent,
    CurrentID,
    strl[200],
    vehicle[][] =
    {
        "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper",
        "Firetruck","Trashmaster","Stretch","Manana","Infernus","Voodoo","Pony","Mule",
        "Cheetah","Ambulancia","Leviathan","Moonbeam","Esperanto","Taxi","Washington",
        "Bobcat","Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar",
        "Banshee","Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon",
        "Coach","Cabbie","Stallion","Rumpo","RC Bandit","Romero","Packer","Monster",
        "Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder",
        "Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van",
        "Skimmer","PCJ-600","Faggio","Freeway","RC Baron","RC Raider","Glendale",
        "Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes",
        "Sabre","Rustler","ZR3 50","Walton","Regina","Comet","BMX","Burrito","Camper",
        "Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher",
        "Virgo","Greenwood","Jetmax","Hotring","Sandking","Blista Compact","Maverick Policial",
        "Boxville","Benson","Mesa","RC Goblin","Hotring Racer A","Hotring Racer B",
        "Bloodring Banger","Rancher","Super GT","Elegant","Journey","Bike","Mountain Bike",
        "Beagle","Cropdust","Stunt","Tanker","RoadTrain","Nebula","Majestic","Buccaneer",
        "Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune",
        "Cadrona","FBI Truck","Willard","Forklift","Tractor","Combine","Feltzer","Remington",
        "Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover","Sadler",
        "Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit",
        "Utility","Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus","Jester",
        "Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna",
        "Bandito","Freight","Trailer","Kart","Mower","Duneride","Sweeper","Broadway",
        "Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug",
        "Trailer A","Emperor","Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C",
        "Andromada","Dodo","RC Cam","Launch","Carro Policial(LSPD)","Carro Policial (SFPD)",
        "Carro Policial","Police Ranger","Picador","S.W.A.T. Van","Alpha","Phoenix",
        "Glendale","Sadler","Luggage Trailer A","Luggage Trailer B","Stair Trailer",
        "Boxville","Farm Plow","Utility Trailer"
};

stock SalvarConc(playerid)
{
    new Nome[24], Float:Angulo;
    GetPlayerName(playerid, Nome, 24);

    GetVehicleZAngle(pInfo[playerid][Carro1], Angulo);
    format(strl, sizeof(strl),"Concessionaria/%s_car1.if", Nome);
    if(!fexist(strl)) dini_Create(strl);
    dini_IntSet(strl,"Modelo_1", pInfo[playerid][iModelo1]);
    dini_FloatSet(strl, "POSX_1", pInfo[playerid][carro1x]);
    dini_FloatSet(strl, "POSY_1", pInfo[playerid][carro1y]);
    dini_FloatSet(strl, "POSZ_1", pInfo[playerid][carro1z]);
    dini_FloatSet(strl, "Angulo", Angulo);
    dini_IntSet(strl, "Cor1", pInfo[playerid][Cor1Car1]);
    dini_IntSet(strl, "Cor2", pInfo[playerid][Cor2Car1]);

    GetVehicleZAngle(pInfo[playerid][Carro2], Angulo);
    format(strl, sizeof(strl),"Concessionaria/%s_car2.if", Nome);
    if(!fexist(strl)) dini_Create(strl);
    dini_IntSet(strl, "Modelo_2", pInfo[playerid][iModelo2]);
    dini_FloatSet(strl, "POSX_2", pInfo[playerid][carro2x]);
    dini_FloatSet(strl, "POSY_2", pInfo[playerid][carro2y]);
    dini_FloatSet(strl, "POSZ_2", pInfo[playerid][carro2z]);
    dini_FloatSet(strl, "Angulo", Angulo);
    dini_IntSet(strl, "Cor1", pInfo[playerid][Cor1Car2]);
    dini_IntSet(strl, "Cor2", pInfo[playerid][Cor2Car2]);
    return 1;
}
stock CarregarConc(playerid)
{
    new Nome[24];
    GetPlayerName(playerid, Nome, 24);

    format(strl, sizeof(strl),"Concessionaria/%s_car1.if", Nome);
    pInfo[playerid][iModelo1]    = dini_Int(strl,"Modelo_1");
    pInfo[playerid][carro1x]     = dini_Float(strl, "POSX_1");
    pInfo[playerid][carro1y]     = dini_Float(strl, "POSY_1");
    pInfo[playerid][carro1z]     = dini_Float(strl, "POSZ_1");
    pInfo[playerid][Angulo1]     = dini_Float(strl, "Angulo");

    format(strl, sizeof(strl),"Concessionaria/%s_car2.if", Nome);
    pInfo[playerid][iModelo2]    = dini_Int(strl,"Modelo_2");
    pInfo[playerid][carro2x]     = dini_Float(strl, "POSX_2");
    pInfo[playerid][carro2y]     = dini_Float(strl, "POSY_2");
    pInfo[playerid][carro2z]     = dini_Float(strl, "POSZ_2");
    pInfo[playerid][Angulo2]     = dini_Float(strl, "Angulo");
    return 1;
}
stock CreateConce(x_Nome[], Float:p_X, Float:p_Y, Float:p_Z)
{
    format(iConce[CurrentID][c_Nome],   MAX_cNAME, x_Nome);
    iConce[CurrentID][c_PickX]          = p_X;
    iConce[CurrentID][c_PickY]          = p_Y;
    iConce[CurrentID][c_PickZ]          = p_Z;
    CreatePickup(1318, 23, iConce[CurrentID][c_PickX], iConce[CurrentID][c_PickY], iConce[CurrentID][c_PickZ]);
    Create3DTextLabel("Aperte F para adiquirir um veiculo", 0xFF00FFAA, p_X, p_Y, p_Z, 10.0, 50, 0);
    return CurrentID++;
}

stock s_AddConceVehicle(modeid, preco)
{
    iCarro[FotherCorrent][Preco]     = preco;
    iCarro[FotherCorrent][Modelo]    = modeid;
    printf("Carro Adicionado: ID:%i Fother: %i Modelo:%d Preзo:%d", CurrentID, FotherCorrent, iCarro[FotherCorrent][Modelo], iCarro[FotherCorrent][Preco]);
    return FotherCorrent++;
}

stock StartBuying(pid)
    return ShowPlayerDialog(pid, DIALOG_CARROS, DIALOG_STYLE_LIST,"~ Concessionбria ~","Efetuar Compra de veiculo\nVisualizar Modelo","Proximo","Fechar");

ComprarVeiculo(playerid, vehicleid, preco);
public ComprarVeiculo(playerid, vehicleid, preco)
{
    if(GetPlayerMoney(playerid) < preco)
        return SendClientMessage(playerid, -1,"Vocк nгo grana suficiente para comprar este carro");

    if(pInfo[playerid][iModelo1] == 0)
    {
        pInfo[playerid][iModelo1] = vehicleid;
        pInfo[playerid][Carro1] = CreateVehicle(vehicleid, 2809.5098,-1822.0376,9.7244, 86.4366, pInfo[playerid][Cor1Car1], pInfo[playerid][Cor2Car1], 999999999999996);
        PutPlayerInVehicle(playerid, pInfo[playerid][Carro1], 0);
        GivePlayerMoney(playerid, -preco);
        pInfo[playerid][Money1] = preco;
        SalvarConc(playerid);
        SendClientMessage(playerid, 0xFF00FFAA,"Para ver os comandos de seu veнculo digite {C9C9C9}(/v)eiculo help!");
        ShowPlayerDialog(playerid, DIAL_SELCORCAR1, DIALOG_STYLE_LIST,"~ Concessionбria:Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");
        return 1;
    }
    if(pInfo[playerid][iModelo2] == 0)
    {
        pInfo[playerid][iModelo2] = vehicleid;
        pInfo[playerid][Carro2] = CreateVehicle(vehicleid, 2809.5098,-1822.0376,9.7244, 86.4366, pInfo[playerid][Cor1Car2], pInfo[playerid][Cor2Car2], 999999999999996);
        PutPlayerInVehicle(playerid, pInfo[playerid][Carro2], 0);
        GivePlayerMoney(playerid, -preco);
        pInfo[playerid][Money2] = preco;
        SalvarConc(playerid);
        SendClientMessage(playerid, 0xFF00FFAA,"Para ver os comandos de seu veнculo digite {C9C9C9}(/v)eiculo help!");
        ShowPlayerDialog(playerid, DIAL_SELCORCAR2, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");
        return 1;
    }
    SendClientMessage(playerid, -1,"Vocк jб tem 2 carros! Venda um para depois comprar outro!");
    return 1;
}
////////////////////////////////////////////////////////////////////////////////

public OnPlayerConnect(playerid)
{
    pInfo[playerid][iModelo1] = 0;
    pInfo[playerid][iModelo2] = 0;
    pInfo[playerid][carro2x]  = 0.0;
    pInfo[playerid][carro2y]  = 0.0;
    pInfo[playerid][carro2z]  = 0.0;
    pInfo[playerid][carro1x]  = 0.0;
    pInfo[playerid][carro2y]  = 0.0;
    pInfo[playerid][carro2z]  = 0.0;

    CarregarConc(playerid);

    if(pInfo[playerid][iModelo1] != 0)
    {
        pInfo[playerid][Carro1] = CreateVehicle(pInfo[playerid][iModelo1], pInfo[playerid][carro1x], pInfo[playerid][carro1y], pInfo[playerid][carro1z], pInfo[playerid][Angulo1], pInfo[playerid][Cor1Car1], pInfo[playerid][Cor2Car1], 9999999999);
    }
    if(pInfo[playerid][iModelo2] != 0)
    {

        pInfo[playerid][Carro2] = CreateVehicle(pInfo[playerid][iModelo2], pInfo[playerid][carro2x], pInfo[playerid][carro2y], pInfo[playerid][carro2z], pInfo[playerid][Angulo2],  pInfo[playerid][Cor1Car2], pInfo[playerid][Cor2Car2], 9999999999);
    }
    return 1;
}


public OnFilterScriptInit()
{
    CreatePickup(1318, 23, 2812.8137,-1821.9536,9.9361);// 2812.8137,-1821.9536,9.9361
    Create3DTextLabel("Aperte F para vender seu veiculo.",0x008080FF,2812.8137,-1821.9536,9.9361,10.0,0,0);
    CreateConce("Alabamas", 2780.4939,-1812.2635,11.8438);
    s_AddConceVehicle(402, 50000);
    s_AddConceVehicle(404, 12000);
    s_AddConceVehicle(405, 45000);
    s_AddConceVehicle(409, 110000);
    s_AddConceVehicle(410, 10000);
    s_AddConceVehicle(412, 23000);
    s_AddConceVehicle(415, 135000);
    s_AddConceVehicle(418, 10000);
    s_AddConceVehicle(419, 13500);
    s_AddConceVehicle(421, 36000);
    s_AddConceVehicle(426, 30000);
    s_AddConceVehicle(429, 75000);
    s_AddConceVehicle(434, 135000);
    s_AddConceVehicle(436, 12000);
    s_AddConceVehicle(439, 14500);
    s_AddConceVehicle(442, 25000);
    s_AddConceVehicle(445, 28000);
    s_AddConceVehicle(451, 150000);
    s_AddConceVehicle(458, 13500);
    s_AddConceVehicle(466, 22500);
    s_AddConceVehicle(467, 22500);
    s_AddConceVehicle(474, 14500);
    s_AddConceVehicle(475, 24000);
    s_AddConceVehicle(477, 78000);
    s_AddConceVehicle(479, 23000);
    s_AddConceVehicle(480, 105000);
    s_AddConceVehicle(483, 15000);
    s_AddConceVehicle(491, 29000);
    s_AddConceVehicle(492, 26000);
    s_AddConceVehicle(496, 19000);
    s_AddConceVehicle(506, 105000);
    s_AddConceVehicle(507, 30000);
    s_AddConceVehicle(516, 18000);
    s_AddConceVehicle(517, 20000);
    s_AddConceVehicle(518, 23000);
    s_AddConceVehicle(526, 12000);
    s_AddConceVehicle(527, 11000);
    s_AddConceVehicle(529, 14000);
    s_AddConceVehicle(533, 35000);
    s_AddConceVehicle(534, 27000);
    s_AddConceVehicle(535, 35000);
    s_AddConceVehicle(536, 24000);
    s_AddConceVehicle(540, 28000);
    s_AddConceVehicle(541, 150000);
    s_AddConceVehicle(542, 18000);
    s_AddConceVehicle(545, 35000);
    s_AddConceVehicle(546, 17000);
    s_AddConceVehicle(547, 16000);
    s_AddConceVehicle(549, 16000);
    s_AddConceVehicle(550, 30000);
    s_AddConceVehicle(551, 36000);
    s_AddConceVehicle(555, 60000);
    s_AddConceVehicle(558, 65000);
    s_AddConceVehicle(559, 70000);
    s_AddConceVehicle(560, 105000);
    s_AddConceVehicle(561, 50000);
    s_AddConceVehicle(562, 86000);
    s_AddConceVehicle(565, 47000);
    s_AddConceVehicle(566, 27000);
    s_AddConceVehicle(567, 32000);
    s_AddConceVehicle(575, 22000);
    s_AddConceVehicle(576, 18500);
    s_AddConceVehicle(580, 45000);
    s_AddConceVehicle(585, 15500);
    s_AddConceVehicle(587, 22000);
    s_AddConceVehicle(589, 16500);
    s_AddConceVehicle(602, 28500);
    s_AddConceVehicle(603, 50000);
    //CloseConce();
    return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerCommandText(playerid,cmdtext[])
{
    if(strcmp("/veiculo", cmdtext, true) == 0 || strcmp("/v", cmdtext, true) == 0)
    {
        if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] == 0) return SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo tem um veнculo comprado na concessionбria!");
        ShowPlayerDialog(playerid, DIALOG_VEHICLE, DIALOG_STYLE_LIST, "~. Menu Veнculo .~","Estacionar\nMeus Carros","Confirmar","Sair");
        return 1;
    }
    if(!strcmp(cmdtext,"/ir_", true))
    {
        SetPlayerPos(playerid, 2810.0361,-1829.5409,9.9241);
        return 1;
    }
    if(!strcmp(cmdtext,"/carro2", true))
    {
        SetPlayerPos(playerid, pInfo[playerid][carro2x], pInfo[playerid][carro2y], pInfo[playerid][carro2z]);
    }
    return 0;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_SECONDARY_ATTACK)
    {
        if(VisualizandoModelo[playerid] == true)
        {
            SetPlayerPos(playerid, 2781.6172,-1812.4465,11.8438);
            SetPlayerFacingAngle(playerid, 51.7605);
            TogglePlayerControllable(playerid, 1);
            DestroyVehicle(VConcModelo[playerid]);
            VisualizandoModelo[playerid] = false;
            SetCameraBehindPlayer(playerid);
            return 1;
        }
    }
    if(newkeys & 16)
    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0, 2780.4939,-1812.2635,11.8438)) return StartBuying(playerid);
        if(IsPlayerInRangeOfPoint(playerid, 5.0, 2812.8137,-1821.9536,9.9361)) return ShowPlayerDialog(playerid, DIALOG_VENDCAR, DIALOG_STYLE_LIST,"Qual veiculo vocк deseja vender?","Veнculo 1\nVeнculo 2", "Vender", "Cancelar");
    }
    return 1;
}
new CarColors[]=
{
    1,
    0,
    6,
    24,
    3,
    11,
    44
};


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIAL_SELCOR2_CAR1)
    {
        if(!response)
            return ShowPlayerDialog(playerid, DIAL_SELCOR, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");

        pInfo[playerid][Cor1Car2] = CarColors[listitem];
        ChangeVehicleColor(pInfo[playerid][Carro1], CarColors[listitem], pInfo[playerid][Cor2Car1]);
    }
    else if(dialogid == DIAL_SELCOR1_CAR1)
    {
        if(!response)
            return ShowPlayerDialog(playerid, DIAL_SELCOR, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");

        if(response)
        {
            pInfo[playerid][Cor1Car1] = CarColors[listitem];
            ChangeVehicleColor(pInfo[playerid][Carro1], CarColors[listitem], pInfo[playerid][Cor2Car1]);
        }
    }
    else if(dialogid == DIAL_SELCORCAR1)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, DIAL_SELCOR1_CAR1, DIALOG_STYLE_LIST,"Concessionбra: Cor do carro nє1","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");
            }
            if(listitem == 1)
            {
                ShowPlayerDialog(playerid, DIAL_SELCOR2_CAR1, DIALOG_STYLE_LIST,"Concessionбra: Cor do carro nє2","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");
            }
        }
    }
    else if(dialogid == DIAL_SELCOR1_CAR2)
    {
        if(!response)
            return ShowPlayerDialog(playerid, DIAL_SELCOR, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");

        if(response)
        {
            pInfo[playerid][Cor1Car2] = CarColors[listitem];
            ChangeVehicleColor(pInfo[playerid][Carro2], pInfo[playerid][Cor1Car2], pInfo[playerid][Cor2Car2]);
        }
    }
    else if(dialogid == DIAL_SELCORCAR2)
    {
        if(response)
        {
            if(listitem == 0)
                return ShowPlayerDialog(playerid, DIAL_SELCOR1_CAR2, DIALOG_STYLE_LIST,"Concessionбra","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");

            if(listitem == 1)
                return ShowPlayerDialog(playerid, DIAL_SELCOR2_CAR2, DIALOG_STYLE_LIST,"Concessionбra","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");
        }
    }
    else if(dialogid == DIALOG_VEHICLE)
    {
        if(!response) return SendClientMessage(playerid, 0xFFFF00AA, "Cuidado!{E31919} Seja cauteloso com o local que irб estacionar seu veнculo!");
        if(response)
        {
            if(listitem == 0)
            {
                if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFAA,"Vocк nгo estб dentro de um veнculo!");
                if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] == 0) return SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo tem um veнculo comprado na concessionбria!");
                static Float:xpos,Float:ypos,Float:zpos;
                GetPlayerPos(playerid, Float:xpos, Float:ypos, Float:zpos);
                RemovePlayerFromVehicle(playerid);
                if(GetVehicleModel(GetPlayerVehicleID(playerid)) == pInfo[playerid][iModelo1])
                {
                    pInfo[playerid][carro1x]    = xpos+1.1;
                    pInfo[playerid][carro1y]    = ypos;
                    pInfo[playerid][carro1z]    = zpos;
                    SalvarConc(playerid);
                    GameTextForPlayer(playerid, "~r~Veiculo estacionado", 3000, 3);
                    return 1;
                }
                else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == pInfo[playerid][iModelo2])
                {
                    pInfo[playerid][carro2x]    =  xpos+1.1;
                    pInfo[playerid][carro2y]    =  ypos;
                    pInfo[playerid][carro2z]    =  zpos;
                    SalvarConc(playerid);
                    GameTextForPlayer(playerid, "~r~Veiculo estacionado", 3000, 3);
                    return 1;
                }
            }
            if(listitem == 1)
            {
                new ascar[128];
                if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] == 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro 'Nenhum'  | Modelo: 0\n\
                    Vocк tem o carro 'Nenhum' | Modelo: 0\nVocк tem nenhum carro, compre algum!."
);
                }
                if(pInfo[playerid][iModelo1] != 0 && pInfo[playerid][iModelo2] != 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro '%s'  | Modelo: %i\n\
                    Vocк tem o carro '%s' | Modelo: %i\n"
, vehicle[pInfo[playerid][iModelo1] - 400], pInfo[playerid][iModelo1], vehicle[pInfo[playerid][iModelo2] - 400], pInfo[playerid][iModelo2]);
                }
                if(pInfo[playerid][iModelo1] != 0 && pInfo[playerid][iModelo2] == 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro '%s'  | Modelo: %i\n\
                    Vocк tem o carro 'Nenhum' | Modelo: 0\n"
, vehicle[pInfo[playerid][iModelo1] - 400], pInfo[playerid][iModelo1]);
                }
                if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] != 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro 'Nenhum'  | Modelo: 0\n\
                    Vocк tem o carro '%s' | Modelo: %i\n"
, vehicle[pInfo[playerid][iModelo2] - 400], pInfo[playerid][iModelo2]);
                }
                ShowPlayerDialog(playerid, 654, DIALOG_STYLE_MSGBOX,"Concessionбria", ascar, "Ok","");
            }
        }
    }
    if(dialogid == DIALOG_VENDCAR)
    {
        if(response)
        {
            if(listitem == 0)
            {
                if(pInfo[playerid][iModelo1] == 0)
                    return SendClientMessage(playerid, -1,"Vocк nгo tem este veнculo!");
                {
                    DestroyVehicle(pInfo[playerid][Carro1]);
                    pInfo[playerid][Carro1]     = 0;
                    pInfo[playerid][iModelo1]   = 0;
                    GameTextForPlayer(playerid, "~g~Veiculo Vendido", 3000, 3);
                    GivePlayerMoney(playerid, pInfo[playerid][Money1]/2);
                    return 1;
                }
            }
            else if(listitem == 1)
            {
                if(pInfo[playerid][iModelo2] == 0)
                    return SendClientMessage(playerid, -1,"Vocк nгo tem este veнculo!");
                else
                {
                    DestroyVehicle(pInfo[playerid][Carro2]);
                    pInfo[playerid][Carro2]     = 0;
                    pInfo[playerid][iModelo2]   = 0;
                    GameTextForPlayer(playerid, "~g~Veiculo Vendido", 3000, 3);
                    GivePlayerMoney(playerid, pInfo[playerid][Money2]/2);
                    return 1;
                }
            }
        }
    }
    if(dialogid == DIALOG_CARROS)
    {
        if(response)
        {
            if(listitem == 0)
            {
                new textdialog[3900],strlol[100];
                for(new i; i < FotherCorrent; ++i)
                {
                    format(strlol, sizeof(strlol),"{FFA500}%s {FFFFFF}» Preзo: {7CFC00}${00BFFF}%d\n",vehicle[ iCarro[i][Modelo] - 400], iCarro[i][Preco]);
                    strcat(textdialog, strlol);
                    printf(strlol);
                }
                ShowPlayerDialog(playerid, DALOG_SELECT_CAR, DIALOG_STYLE_LIST,"Qual carro vocк deseja comprar?",textdialog,"Comprar","Cancelar");
            }
            if(listitem == 1)
            {
                new textdialog[3900],strlol[100];
                for(new i; i < FotherCorrent; ++i)
                {
                    format(strlol, sizeof(strlol),"{FFA500}%s {FFFFFF}» Preзo: {7CFC00}${00BFFF}%d\n",vehicle[ iCarro[i][Modelo] - 400], iCarro[i][Preco]);
                    strcat(textdialog, strlol);
                    printf(strlol);
                }
                ShowPlayerDialog(playerid, DALOG_SELECT_CAR_VIS, DIALOG_STYLE_LIST,"Qual carro vocк deseja visualizar?",textdialog,"Visualizar","Cancelar");
            }
        }
        return 1;
    }
    if(dialogid == DALOG_SELECT_CAR_VIS)
    {
        if(response)
        {
            SetPlayerCameraPos(playerid, -1662.796875, 1212.473022, 21.156250);
            SetPlayerCameraLookAt(playerid,  -1652.571777, 1208.198364, 20.881875);
            SetPlayerPos(playerid, -1682.210815, 1211.037231, 31.671875);
            TogglePlayerControllable(playerid, 0);
            VConcModelo[playerid] = CreateVehicle(iCarro[listitem][Modelo], -1652.571777, 1208.198364, 20.881875, 40.5183, 1, 1, 5000);
            SendClientMessage(playerid, 0xFFFFFFAA, "Para sair do modo visualizar modelo pressione {E31919}ENTER");
            VisualizandoModelo[playerid] = true;
        }
    }
    if(dialogid == DALOG_SELECT_CAR)
    {
        if(response)
        {
            CallLocalFunction("ComprarVeiculo", "iid", playerid, iCarro[listitem][Modelo], iCarro[listitem][Preco]);
        }
    }
    return 1;
}
Reply
#2

cara eu posso te ajudar se vc postar o erros ocorridos e em qual localidade do gm ocorreu. poste aki ok?
Reply
#3

Nгo entendi nada, se for possнvel explicar melhor, agradeceria...
Reply
#4

pawn Код:
#include <a_samp>
#include <dini>


#define PASTA                                       "Concessionaria/%s.if"
#define MAX_CONCE                                   MAX_CARROS//(005)
#define MAX_CARROS                                  (100)
#define MAX_cNAME                                   (50)
#define MAX_CARSP                                   (02) // Mбximo de carros por player. ( NAO MUDAR ).


#define DIAL_SELCOR2_CAR1                           100
#define DIAL_SELCORCAR1                             200
#define DIAL_SELCORCAR2                             400
#define DIALOG_VENDCAR                              500
#define DIALOG_CARROS                               600
#define DALOG_SELECT_CAR                            700
#define DALOG_SELECT_CAR_VIS                        800
#define DIALOG_VEHICLE                              900
#define DIAL_SELCOR                                 1000
#define DIAL_SELCOR1_CAR1                           2000
#define DIAL_SELCOR1_CAR2                           3000
#define DIAL_SELCOR2_CAR2                           4000

#pragma unused strtok


enum Concecs
{
    c_Veiculos[MAX_CARROS],
    c_Nome[MAX_cNAME],
    Float:c_PickX,
    Float:c_PickY,
    Float:c_PickZ,
    Dono[24],
    Pickup,
    Carro[2],
    ID
};

enum carro_s
{
    Preco,
    Modelo,
    vModelo
};

enum _plyaer
{
    bool:Comprando,
    vModelo,
    iModelo1,
    iModelo2,
    Carro1,
    Carro2,
    Money1,
    Money2,
    Cor1Car1,
    Cor2Car1,
    Cor1Car2,
    Cor2Car2,
    Float:Angulo1,
    Float:Angulo2,
    Float:carro1x,
    Float:carro1y,
    Float:carro1z,
    Float:carro2x,
    Float:carro2y,
    Float:carro2z

};

new
    VConcModelo[MAX_PLAYERS],
    bool:VisualizandoModelo[MAX_PLAYERS],
    pInfo[MAX_PLAYERS][_plyaer],
    iCarro[MAX_CARROS][carro_s],
    iConce[MAX_CONCE][Concecs],
    FotherCorrent,
    CurrentID,
    strl[200],
    vehicle[][] =
    {
        "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper",
        "Firetruck","Trashmaster","Stretch","Manana","Infernus","Voodoo","Pony","Mule",
        "Cheetah","Ambulancia","Leviathan","Moonbeam","Esperanto","Taxi","Washington",
        "Bobcat","Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar",
        "Banshee","Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon",
        "Coach","Cabbie","Stallion","Rumpo","RC Bandit","Romero","Packer","Monster",
        "Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder",
        "Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van",
        "Skimmer","PCJ-600","Faggio","Freeway","RC Baron","RC Raider","Glendale",
        "Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes",
        "Sabre","Rustler","ZR3 50","Walton","Regina","Comet","BMX","Burrito","Camper",
        "Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher",
        "Virgo","Greenwood","Jetmax","Hotring","Sandking","Blista Compact","Maverick Policial",
        "Boxville","Benson","Mesa","RC Goblin","Hotring Racer A","Hotring Racer B",
        "Bloodring Banger","Rancher","Super GT","Elegant","Journey","Bike","Mountain Bike",
        "Beagle","Cropdust","Stunt","Tanker","RoadTrain","Nebula","Majestic","Buccaneer",
        "Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune",
        "Cadrona","FBI Truck","Willard","Forklift","Tractor","Combine","Feltzer","Remington",
        "Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover","Sadler",
        "Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit",
        "Utility","Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus","Jester",
        "Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna",
        "Bandito","Freight","Trailer","Kart","Mower","Duneride","Sweeper","Broadway",
        "Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug",
        "Trailer A","Emperor","Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C",
        "Andromada","Dodo","RC Cam","Launch","Carro Policial(LSPD)","Carro Policial (SFPD)",
        "Carro Policial","Police Ranger","Picador","S.W.A.T. Van","Alpha","Phoenix",
        "Glendale","Sadler","Luggage Trailer A","Luggage Trailer B","Stair Trailer",
        "Boxville","Farm Plow","Utility Trailer"
};

stock SalvarConc(playerid)
{
    new Nome[24], Float:Angulo;
    GetPlayerName(playerid, Nome, 24);

    GetVehicleZAngle(pInfo[playerid][Carro1], Angulo);
    format(strl, sizeof(strl),"Concessionaria/%s_car1.if", Nome);
    if(!fexist(strl)) dini_Create(strl);
    dini_IntSet(strl,"Modelo_1", pInfo[playerid][iModelo1]);
    dini_FloatSet(strl, "POSX_1", pInfo[playerid][carro1x]);
    dini_FloatSet(strl, "POSY_1", pInfo[playerid][carro1y]);
    dini_FloatSet(strl, "POSZ_1", pInfo[playerid][carro1z]);
    dini_FloatSet(strl, "Angulo", Angulo);
    dini_IntSet(strl, "Cor1", pInfo[playerid][Cor1Car1]);
    dini_IntSet(strl, "Cor2", pInfo[playerid][Cor2Car1]);

    GetVehicleZAngle(pInfo[playerid][Carro2], Angulo);
    format(strl, sizeof(strl),"Concessionaria/%s_car2.if", Nome);
    if(!fexist(strl)) dini_Create(strl);
    dini_IntSet(strl, "Modelo_2", pInfo[playerid][iModelo2]);
    dini_FloatSet(strl, "POSX_2", pInfo[playerid][carro2x]);
    dini_FloatSet(strl, "POSY_2", pInfo[playerid][carro2y]);
    dini_FloatSet(strl, "POSZ_2", pInfo[playerid][carro2z]);
    dini_FloatSet(strl, "Angulo", Angulo);
    dini_IntSet(strl, "Cor1", pInfo[playerid][Cor1Car2]);
    dini_IntSet(strl, "Cor2", pInfo[playerid][Cor2Car2]);
    return 1;
}
stock CarregarConc(playerid)
{
    new Nome[24];
    GetPlayerName(playerid, Nome, 24);

    format(strl, sizeof(strl),"Concessionaria/%s_car1.if", Nome);
    pInfo[playerid][iModelo1]    = dini_Int(strl,"Modelo_1");
    pInfo[playerid][carro1x]     = dini_Float(strl, "POSX_1");
    pInfo[playerid][carro1y]     = dini_Float(strl, "POSY_1");
    pInfo[playerid][carro1z]     = dini_Float(strl, "POSZ_1");
    pInfo[playerid][Angulo1]     = dini_Float(strl, "Angulo");

    format(strl, sizeof(strl),"Concessionaria/%s_car2.if", Nome);
    pInfo[playerid][iModelo2]    = dini_Int(strl,"Modelo_2");
    pInfo[playerid][carro2x]     = dini_Float(strl, "POSX_2");
    pInfo[playerid][carro2y]     = dini_Float(strl, "POSY_2");
    pInfo[playerid][carro2z]     = dini_Float(strl, "POSZ_2");
    pInfo[playerid][Angulo2]     = dini_Float(strl, "Angulo");
    return 1;
}
stock CreateConce(x_Nome[], Float:p_X, Float:p_Y, Float:p_Z)
{
    format(iConce[CurrentID][c_Nome],   MAX_cNAME, x_Nome);
    iConce[CurrentID][c_PickX]          = p_X;
    iConce[CurrentID][c_PickY]          = p_Y;
    iConce[CurrentID][c_PickZ]          = p_Z;
    CreatePickup(1318, 23, iConce[CurrentID][c_PickX], iConce[CurrentID][c_PickY], iConce[CurrentID][c_PickZ]);
    Create3DTextLabel("Aperte F para adiquirir um veiculo", 0xFF00FFAA, p_X, p_Y, p_Z, 10.0, 50, 0);
    return CurrentID++;
}

stock s_AddConceVehicle(modeid, preco)
{
    iCarro[FotherCorrent][Preco]     = preco;
    iCarro[FotherCorrent][Modelo]    = modeid;
    printf("Carro Adicionado: ID:%i Fother: %i Modelo:%d Preзo:%d", CurrentID, FotherCorrent, iCarro[FotherCorrent][Modelo], iCarro[FotherCorrent][Preco]);
    return FotherCorrent++;
}

stock StartBuying(pid)
    return ShowPlayerDialog(pid, DIALOG_CARROS, DIALOG_STYLE_LIST,"~ Concessionбria ~","Efetuar Compra de veiculo\nVisualizar Modelo","Proximo","Fechar");

ComprarVeiculo(playerid, vehicleid, preco);
public ComprarVeiculo(playerid, vehicleid, preco)
{
    if(GetPlayerMoney(playerid) < preco)
        return SendClientMessage(playerid, -1,"Vocк nгo grana suficiente para comprar este carro");

    if(pInfo[playerid][iModelo1] == 0)
    {
        pInfo[playerid][iModelo1] = vehicleid;
        pInfo[playerid][Carro1] = CreateVehicle(vehicleid, 2809.5098,-1822.0376,9.7244, 86.4366, pInfo[playerid][Cor1Car1], pInfo[playerid][Cor2Car1], 999999999999996);
        PutPlayerInVehicle(playerid, pInfo[playerid][Carro1], 0);
        GivePlayerMoney(playerid, -preco);
        pInfo[playerid][Money1] = preco;
        SalvarConc(playerid);
        SendClientMessage(playerid, 0xFF00FFAA,"Para ver os comandos de seu veнculo digite {C9C9C9}(/v)eiculo help!");
        ShowPlayerDialog(playerid, DIAL_SELCORCAR1, DIALOG_STYLE_LIST,"~ Concessionбria:Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");
        return 1;
    }
    if(pInfo[playerid][iModelo2] == 0)
    {
        pInfo[playerid][iModelo2] = vehicleid;
        pInfo[playerid][Carro2] = CreateVehicle(vehicleid, 2809.5098,-1822.0376,9.7244, 86.4366, pInfo[playerid][Cor1Car2], pInfo[playerid][Cor2Car2], 999999999999996);
        PutPlayerInVehicle(playerid, pInfo[playerid][Carro2], 0);
        GivePlayerMoney(playerid, -preco);
        pInfo[playerid][Money2] = preco;
        SalvarConc(playerid);
        SendClientMessage(playerid, 0xFF00FFAA,"Para ver os comandos de seu veнculo digite {C9C9C9}(/v)eiculo help!");
        ShowPlayerDialog(playerid, DIAL_SELCORCAR2, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");
        return 1;
    }
    SendClientMessage(playerid, -1,"Vocк jб tem 2 carros! Venda um para depois comprar outro!");
    return 1;
}
////////////////////////////////////////////////////////////////////////////////

public OnPlayerConnect(playerid)
{
    pInfo[playerid][iModelo1] = 0;
    pInfo[playerid][iModelo2] = 0;
    pInfo[playerid][carro2x]  = 0.0;
    pInfo[playerid][carro2y]  = 0.0;
    pInfo[playerid][carro2z]  = 0.0;
    pInfo[playerid][carro1x]  = 0.0;
    pInfo[playerid][carro2y]  = 0.0;
    pInfo[playerid][carro2z]  = 0.0;

    CarregarConc(playerid);

    if(pInfo[playerid][iModelo1] != 0)
    {
        pInfo[playerid][Carro1] = CreateVehicle(pInfo[playerid][iModelo1], pInfo[playerid][carro1x], pInfo[playerid][carro1y], pInfo[playerid][carro1z], pInfo[playerid][Angulo1], pInfo[playerid][Cor1Car1], pInfo[playerid][Cor2Car1], 9999999999);
    }
    if(pInfo[playerid][iModelo2] != 0)
    {

        pInfo[playerid][Carro2] = CreateVehicle(pInfo[playerid][iModelo2], pInfo[playerid][carro2x], pInfo[playerid][carro2y], pInfo[playerid][carro2z], pInfo[playerid][Angulo2],  pInfo[playerid][Cor1Car2], pInfo[playerid][Cor2Car2], 9999999999);
    }
    return 1;
}


public OnFilterScriptInit()
{
    CreatePickup(1318, 23, 2812.8137,-1821.9536,9.9361);// 2812.8137,-1821.9536,9.9361
    Create3DTextLabel("Aperte F para vender seu veiculo.",0x008080FF,2812.8137,-1821.9536,9.9361,10.0,0,0);
    CreateConce("Alabamas", 2780.4939,-1812.2635,11.8438);
    s_AddConceVehicle(402, 50000);
    s_AddConceVehicle(404, 12000);
    s_AddConceVehicle(405, 45000);
    s_AddConceVehicle(409, 110000);
    s_AddConceVehicle(410, 10000);
    s_AddConceVehicle(412, 23000);
    s_AddConceVehicle(415, 135000);
    s_AddConceVehicle(418, 10000);
    s_AddConceVehicle(419, 13500);
    s_AddConceVehicle(421, 36000);
    s_AddConceVehicle(426, 30000);
    s_AddConceVehicle(429, 75000);
    s_AddConceVehicle(434, 135000);
    s_AddConceVehicle(436, 12000);
    s_AddConceVehicle(439, 14500);
    s_AddConceVehicle(442, 25000);
    s_AddConceVehicle(445, 28000);
    s_AddConceVehicle(451, 150000);
    s_AddConceVehicle(458, 13500);
    s_AddConceVehicle(466, 22500);
    s_AddConceVehicle(467, 22500);
    s_AddConceVehicle(474, 14500);
    s_AddConceVehicle(475, 24000);
    s_AddConceVehicle(477, 78000);
    s_AddConceVehicle(479, 23000);
    s_AddConceVehicle(480, 105000);
    s_AddConceVehicle(483, 15000);
    s_AddConceVehicle(491, 29000);
    s_AddConceVehicle(492, 26000);
    s_AddConceVehicle(496, 19000);
    s_AddConceVehicle(506, 105000);
    s_AddConceVehicle(507, 30000);
    s_AddConceVehicle(516, 18000);
    s_AddConceVehicle(517, 20000);
    s_AddConceVehicle(518, 23000);
    s_AddConceVehicle(526, 12000);
    s_AddConceVehicle(527, 11000);
    s_AddConceVehicle(529, 14000);
    s_AddConceVehicle(533, 35000);
    s_AddConceVehicle(534, 27000);
    s_AddConceVehicle(535, 35000);
    s_AddConceVehicle(536, 24000);
    s_AddConceVehicle(540, 28000);
    s_AddConceVehicle(541, 150000);
    s_AddConceVehicle(542, 18000);
    s_AddConceVehicle(545, 35000);
    s_AddConceVehicle(546, 17000);
    s_AddConceVehicle(547, 16000);
    s_AddConceVehicle(549, 16000);
    s_AddConceVehicle(550, 30000);
    s_AddConceVehicle(551, 36000);
    s_AddConceVehicle(555, 60000);
    s_AddConceVehicle(558, 65000);
    s_AddConceVehicle(559, 70000);
    s_AddConceVehicle(560, 105000);
    s_AddConceVehicle(561, 50000);
    s_AddConceVehicle(562, 86000);
    s_AddConceVehicle(565, 47000);
    s_AddConceVehicle(566, 27000);
    s_AddConceVehicle(567, 32000);
    s_AddConceVehicle(575, 22000);
    s_AddConceVehicle(576, 18500);
    s_AddConceVehicle(580, 45000);
    s_AddConceVehicle(585, 15500);
    s_AddConceVehicle(587, 22000);
    s_AddConceVehicle(589, 16500);
    s_AddConceVehicle(602, 28500);
    s_AddConceVehicle(603, 50000);
    //CloseConce();
    return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerCommandText(playerid,cmdtext[])
{
    if(strcmp("/veiculo", cmdtext, true) == 0 || strcmp("/v", cmdtext, true) == 0)
    {
        if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] == 0) return SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo tem um veнculo comprado na concessionбria!");
        ShowPlayerDialog(playerid, DIALOG_VEHICLE, DIALOG_STYLE_LIST, "~. Menu Veнculo .~","Estacionar\nMeus Carros","Confirmar","Sair");
        return 1;
    }
    if(!strcmp(cmdtext,"/ir_", true))
    {
        SetPlayerPos(playerid, 2810.0361,-1829.5409,9.9241);
        return 1;
    }
    if(!strcmp(cmdtext,"/carro2", true))
    {
        SetPlayerPos(playerid, pInfo[playerid][carro2x], pInfo[playerid][carro2y], pInfo[playerid][carro2z]);
    }
    return 0;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_SECONDARY_ATTACK)
    {
        if(VisualizandoModelo[playerid] == true)
        {
            SetPlayerPos(playerid, 2781.6172,-1812.4465,11.8438);
            SetPlayerFacingAngle(playerid, 51.7605);
            TogglePlayerControllable(playerid, 1);
            DestroyVehicle(VConcModelo[playerid]);
            VisualizandoModelo[playerid] = false;
            SetCameraBehindPlayer(playerid);
            return 1;
        }
    }
    if(newkeys & 16)
    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0, 2780.4939,-1812.2635,11.8438)) return StartBuying(playerid);
        if(IsPlayerInRangeOfPoint(playerid, 5.0, 2812.8137,-1821.9536,9.9361)) return ShowPlayerDialog(playerid, DIALOG_VENDCAR, DIALOG_STYLE_LIST,"Qual veiculo vocк deseja vender?","Veнculo 1\nVeнculo 2", "Vender", "Cancelar");
    }
    return 1;
}
new CarColors[]=
{
    1,
    0,
    6,
    24,
    3,
    11,
    44
};


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIAL_SELCOR2_CAR1)
    {
        if(!response)
            return ShowPlayerDialog(playerid, DIAL_SELCOR, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");

        pInfo[playerid][Cor1Car2] = CarColors[listitem];
        ChangeVehicleColor(pInfo[playerid][Carro1], CarColors[listitem], pInfo[playerid][Cor2Car1]);
    }
    else if(dialogid == DIAL_SELCOR1_CAR1)
    {
        if(!response)
            return ShowPlayerDialog(playerid, DIAL_SELCOR, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");

        if(response)
        {
            pInfo[playerid][Cor1Car1] = CarColors[listitem];
            ChangeVehicleColor(pInfo[playerid][Carro1], CarColors[listitem], pInfo[playerid][Cor2Car1]);
        }
    }
    else if(dialogid == DIAL_SELCORCAR1)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, DIAL_SELCOR1_CAR1, DIALOG_STYLE_LIST,"Concessionбra: Cor do carro nє1","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");
            }
            if(listitem == 1)
            {
                ShowPlayerDialog(playerid, DIAL_SELCOR2_CAR1, DIALOG_STYLE_LIST,"Concessionбra: Cor do carro nє2","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");
            }
        }
    }
    else if(dialogid == DIAL_SELCOR1_CAR2)
    {
        if(!response)
            return ShowPlayerDialog(playerid, DIAL_SELCOR, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");

        if(response)
        {
            pInfo[playerid][Cor1Car2] = CarColors[listitem];
            ChangeVehicleColor(pInfo[playerid][Carro2], pInfo[playerid][Cor1Car2], pInfo[playerid][Cor2Car2]);
        }
    }
    else if(dialogid == DIAL_SELCORCAR2)
    {
        if(response)
        {
            if(listitem == 0)
                return ShowPlayerDialog(playerid, DIAL_SELCOR1_CAR2, DIALOG_STYLE_LIST,"Concessionбra","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");

            if(listitem == 1)
                return ShowPlayerDialog(playerid, DIAL_SELCOR2_CAR2, DIALOG_STYLE_LIST,"Concessionбra","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");
        }
    }
    else if(dialogid == DIALOG_VEHICLE)
    {
        if(!response) return SendClientMessage(playerid, 0xFFFF00AA, "Cuidado!{E31919} Seja cauteloso com o local que irб estacionar seu veнculo!");
        if(response)
        {
            if(listitem == 0)
            {
                if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFAA,"Vocк nгo estб dentro de um veнculo!");
                if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] == 0) return SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo tem um veнculo comprado na concessionбria!");
                static Float:xpos,Float:ypos,Float:zpos;
                GetPlayerPos(playerid, Float:xpos, Float:ypos, Float:zpos);
                RemovePlayerFromVehicle(playerid);
                if(GetVehicleModel(GetPlayerVehicleID(playerid)) == pInfo[playerid][iModelo1])
                {
                    pInfo[playerid][carro1x]    = xpos+1.1;
                    pInfo[playerid][carro1y]    = ypos;
                    pInfo[playerid][carro1z]    = zpos;
                    SalvarConc(playerid);
                    GameTextForPlayer(playerid, "~r~Veiculo estacionado", 3000, 3);
                    return 1;
                }
                else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == pInfo[playerid][iModelo2])
                {
                    pInfo[playerid][carro2x]    =  xpos+1.1;
                    pInfo[playerid][carro2y]    =  ypos;
                    pInfo[playerid][carro2z]    =  zpos;
                    SalvarConc(playerid);
                    GameTextForPlayer(playerid, "~r~Veiculo estacionado", 3000, 3);
                    return 1;
                }
            }
            if(listitem == 1)
            {
                new ascar[128];
                if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] == 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro 'Nenhum'  | Modelo: 0\n\
                    Vocк tem o carro 'Nenhum' | Modelo: 0\nVocк tem nenhum carro, compre algum!."
);
                }
                if(pInfo[playerid][iModelo1] != 0 && pInfo[playerid][iModelo2] != 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro '%s'  | Modelo: %i\n\
                    Vocк tem o carro '%s' | Modelo: %i\n"
, vehicle[pInfo[playerid][iModelo1] - 400], pInfo[playerid][iModelo1], vehicle[pInfo[playerid][iModelo2] - 400], pInfo[playerid][iModelo2]);
                }
                if(pInfo[playerid][iModelo1] != 0 && pInfo[playerid][iModelo2] == 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro '%s'  | Modelo: %i\n\
                    Vocк tem o carro 'Nenhum' | Modelo: 0\n"
, vehicle[pInfo[playerid][iModelo1] - 400], pInfo[playerid][iModelo1]);
                }
                if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] != 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro 'Nenhum'  | Modelo: 0\n\
                    Vocк tem o carro '%s' | Modelo: %i\n"
, vehicle[pInfo[playerid][iModelo2] - 400], pInfo[playerid][iModelo2]);
                }
                ShowPlayerDialog(playerid, 654, DIALOG_STYLE_MSGBOX,"Concessionбria", ascar, "Ok","");
            }
        }
    }
    if(dialogid == DIALOG_VENDCAR)
    {
        if(response)
        {
            if(listitem == 0)
            {
                if(pInfo[playerid][iModelo1] == 0)
                    return SendClientMessage(playerid, -1,"Vocк nгo tem este veнculo!");
                {
                    DestroyVehicle(pInfo[playerid][Carro1]);
                    pInfo[playerid][Carro1]     = 0;
                    pInfo[playerid][iModelo1]   = 0;
                    GameTextForPlayer(playerid, "~g~Veiculo Vendido", 3000, 3);
                    GivePlayerMoney(playerid, pInfo[playerid][Money1]/2);
                    return 1;
                }
            }
            else if(listitem == 1)
            {
                if(pInfo[playerid][iModelo2] == 0)
                    return SendClientMessage(playerid, -1,"Vocк nгo tem este veнculo!");
                else
                {
                    DestroyVehicle(pInfo[playerid][Carro2]);
                    pInfo[playerid][Carro2]     = 0;
                    pInfo[playerid][iModelo2]   = 0;
                    GameTextForPlayer(playerid, "~g~Veiculo Vendido", 3000, 3);
                    GivePlayerMoney(playerid, pInfo[playerid][Money2]/2);
                    return 1;
                }
            }
        }
    }
    if(dialogid == DIALOG_CARROS)
    {
        if(response)
        {
            if(listitem == 0)
            {
                new textdialog[3900],strlol[100];
                for(new i; i < FotherCorrent; ++i)
                {
                    format(strlol, sizeof(strlol),"{FFA500}%s {FFFFFF}» Preзo: {7CFC00}${00BFFF}%d\n",vehicle[ iCarro[i][Modelo] - 400], iCarro[i][Preco]);
                    strcat(textdialog, strlol);
                    printf(strlol);
                }
                ShowPlayerDialog(playerid, DALOG_SELECT_CAR, DIALOG_STYLE_LIST,"Qual carro vocк deseja comprar?",textdialog,"Comprar","Cancelar");
            }
            if(listitem == 1)
            {
                new textdialog[3900],strlol[100];
                for(new i; i < FotherCorrent; ++i)
                {
                    format(strlol, sizeof(strlol),"{FFA500}%s {FFFFFF}» Preзo: {7CFC00}${00BFFF}%d\n",vehicle[ iCarro[i][Modelo] - 400], iCarro[i][Preco]);
                    strcat(textdialog, strlol);
                    printf(strlol);
                }
                ShowPlayerDialog(playerid, DALOG_SELECT_CAR_VIS, DIALOG_STYLE_LIST,"Qual carro vocк deseja visualizar?",textdialog,"Visualizar","Cancelar");
            }
        }
        return 1;
    }
    if(dialogid == DALOG_SELECT_CAR_VIS)
    {
        if(response)
        {
            SetPlayerCameraPos(playerid, -1662.796875, 1212.473022, 21.156250);
            SetPlayerCameraLookAt(playerid,  -1652.571777, 1208.198364, 20.881875);
            SetPlayerPos(playerid, -1682.210815, 1211.037231, 31.671875);
            TogglePlayerControllable(playerid, 0);
            VConcModelo[playerid] = CreateVehicle(iCarro[listitem][Modelo], -1652.571777, 1208.198364, 20.881875, 40.5183, 1, 1, 5000);
            SendClientMessage(playerid, 0xFFFFFFAA, "Para sair do modo visualizar modelo pressione {E31919}ENTER");
            VisualizandoModelo[playerid] = true;
        }
    }
    if(dialogid == DALOG_SELECT_CAR)
    {
        if(response)
        {
            CallLocalFunction("ComprarVeiculo", "iid", playerid, iCarro[listitem][Modelo], iCarro[listitem][Preco]);
        }
    }
    return 1;
}
Se o erro permanecer verifique se voce tem as includes Dini e a_samp e se esta todas atualizadas..
Reply
#5

pawn Код:
//se vc ja n tiver esses 2 adicione.
#include <a_samp>
#include <dini>

//coloque isso no topo do GM
#define PASTA                                       "Concessionaria/%s.if"
#define MAX_CONCE                                   MAX_CARROS//(005)
#define MAX_CARROS                                  (100)
#define MAX_cNAME                                   (50)
#define MAX_CARSP                                   (02) // Mбximo de carros por player. ( NAO MUDAR ).


#define DIAL_SELCOR2_CAR1                           100
#define DIAL_SELCORCAR1                             200
#define DIAL_SELCORCAR2                             400
#define DIALOG_VENDCAR                              500
#define DIALOG_CARROS                               600
#define DALOG_SELECT_CAR                            700
#define DALOG_SELECT_CAR_VIS                        800
#define DIALOG_VEHICLE                              900
#define DIAL_SELCOR                                 1000
#define DIAL_SELCOR1_CAR1                           2000
#define DIAL_SELCOR1_CAR2                           3000
#define DIAL_SELCOR2_CAR2                           4000


enum Concecs
{
    c_Veiculos[MAX_CARROS],
    c_Nome[MAX_cNAME],
    Float:c_PickX,
    Float:c_PickY,
    Float:c_PickZ,
    Dono[24],
    Pickup,
    Carro[2],
    ID
};

enum carro_s
{
    Preco,
    Modelo,
    vModelo
};

enum _plyaer
{
    bool:Comprando,
    vModelo,
    iModelo1,
    iModelo2,
    Carro1,
    Carro2,
    Money1,
    Money2,
    Cor1Car1,
    Cor2Car1,
    Cor1Car2,
    Cor2Car2,
    Float:Angulo1,
    Float:Angulo2,
    Float:carro1x,
    Float:carro1y,
    Float:carro1z,
    Float:carro2x,
    Float:carro2y,
    Float:carro2z

};

new
    VConcModelo[MAX_PLAYERS],
    bool:VisualizandoModelo[MAX_PLAYERS],
    pInfo[MAX_PLAYERS][_plyaer],
    iCarro[MAX_CARROS][carro_s],
    iConce[MAX_CONCE][Concecs],
    FotherCorrent,
    CurrentID,
    strl[200],
    vehicle[][] =
    {
        "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper",
        "Firetruck","Trashmaster","Stretch","Manana","Infernus","Voodoo","Pony","Mule",
        "Cheetah","Ambulancia","Leviathan","Moonbeam","Esperanto","Taxi","Washington",
        "Bobcat","Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar",
        "Banshee","Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon",
        "Coach","Cabbie","Stallion","Rumpo","RC Bandit","Romero","Packer","Monster",
        "Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder",
        "Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van",
        "Skimmer","PCJ-600","Faggio","Freeway","RC Baron","RC Raider","Glendale",
        "Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes",
        "Sabre","Rustler","ZR3 50","Walton","Regina","Comet","BMX","Burrito","Camper",
        "Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher",
        "Virgo","Greenwood","Jetmax","Hotring","Sandking","Blista Compact","Maverick Policial",
        "Boxville","Benson","Mesa","RC Goblin","Hotring Racer A","Hotring Racer B",
        "Bloodring Banger","Rancher","Super GT","Elegant","Journey","Bike","Mountain Bike",
        "Beagle","Cropdust","Stunt","Tanker","RoadTrain","Nebula","Majestic","Buccaneer",
        "Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune",
        "Cadrona","FBI Truck","Willard","Forklift","Tractor","Combine","Feltzer","Remington",
        "Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover","Sadler",
        "Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit",
        "Utility","Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus","Jester",
        "Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna",
        "Bandito","Freight","Trailer","Kart","Mower","Duneride","Sweeper","Broadway",
        "Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","Newsvan","Tug",
        "Trailer A","Emperor","Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C",
        "Andromada","Dodo","RC Cam","Launch","Carro Policial(LSPD)","Carro Policial (SFPD)",
        "Carro Policial","Police Ranger","Picador","S.W.A.T. Van","Alpha","Phoenix",
        "Glendale","Sadler","Luggage Trailer A","Luggage Trailer B","Stair Trailer",
        "Boxville","Farm Plow","Utility Trailer"
};
//aqui termina oque vc tem que por no topo do GM.

//coloque isso no FIM do GM
stock SalvarConc(playerid)
{
    new Nome[24], Float:Angulo;
    GetPlayerName(playerid, Nome, 24);

    GetVehicleZAngle(pInfo[playerid][Carro1], Angulo);
    format(strl, sizeof(strl),"Concessionaria/%s_car1.if", Nome);
    if(!fexist(strl)) dini_Create(strl);
    dini_IntSet(strl,"Modelo_1", pInfo[playerid][iModelo1]);
    dini_FloatSet(strl, "POSX_1", pInfo[playerid][carro1x]);
    dini_FloatSet(strl, "POSY_1", pInfo[playerid][carro1y]);
    dini_FloatSet(strl, "POSZ_1", pInfo[playerid][carro1z]);
    dini_FloatSet(strl, "Angulo", Angulo);
    dini_IntSet(strl, "Cor1", pInfo[playerid][Cor1Car1]);
    dini_IntSet(strl, "Cor2", pInfo[playerid][Cor2Car1]);

    GetVehicleZAngle(pInfo[playerid][Carro2], Angulo);
    format(strl, sizeof(strl),"Concessionaria/%s_car2.if", Nome);
    if(!fexist(strl)) dini_Create(strl);
    dini_IntSet(strl, "Modelo_2", pInfo[playerid][iModelo2]);
    dini_FloatSet(strl, "POSX_2", pInfo[playerid][carro2x]);
    dini_FloatSet(strl, "POSY_2", pInfo[playerid][carro2y]);
    dini_FloatSet(strl, "POSZ_2", pInfo[playerid][carro2z]);
    dini_FloatSet(strl, "Angulo", Angulo);
    dini_IntSet(strl, "Cor1", pInfo[playerid][Cor1Car2]);
    dini_IntSet(strl, "Cor2", pInfo[playerid][Cor2Car2]);
    return 1;
}
stock CarregarConc(playerid)
{
    new Nome[24];
    GetPlayerName(playerid, Nome, 24);

    format(strl, sizeof(strl),"Concessionaria/%s_car1.if", Nome);
    pInfo[playerid][iModelo1]    = dini_Int(strl,"Modelo_1");
    pInfo[playerid][carro1x]     = dini_Float(strl, "POSX_1");
    pInfo[playerid][carro1y]     = dini_Float(strl, "POSY_1");
    pInfo[playerid][carro1z]     = dini_Float(strl, "POSZ_1");
    pInfo[playerid][Angulo1]     = dini_Float(strl, "Angulo");

    format(strl, sizeof(strl),"Concessionaria/%s_car2.if", Nome);
    pInfo[playerid][iModelo2]    = dini_Int(strl,"Modelo_2");
    pInfo[playerid][carro2x]     = dini_Float(strl, "POSX_2");
    pInfo[playerid][carro2y]     = dini_Float(strl, "POSY_2");
    pInfo[playerid][carro2z]     = dini_Float(strl, "POSZ_2");
    pInfo[playerid][Angulo2]     = dini_Float(strl, "Angulo");
    return 1;
}
stock CreateConce(x_Nome[], Float:p_X, Float:p_Y, Float:p_Z)
{
    format(iConce[CurrentID][c_Nome],   MAX_cNAME, x_Nome);
    iConce[CurrentID][c_PickX]          = p_X;
    iConce[CurrentID][c_PickY]          = p_Y;
    iConce[CurrentID][c_PickZ]          = p_Z;
    CreatePickup(1318, 23, iConce[CurrentID][c_PickX], iConce[CurrentID][c_PickY], iConce[CurrentID][c_PickZ]);
    Create3DTextLabel("Aperte F para adiquirir um veiculo", 0xFF00FFAA, p_X, p_Y, p_Z, 10.0, 50, 0);
    return CurrentID++;
}

stock s_AddConceVehicle(modeid, preco)
{
    iCarro[FotherCorrent][Preco]     = preco;
    iCarro[FotherCorrent][Modelo]    = modeid;
    printf("Carro Adicionado: ID:%i Fother: %i Modelo:%d Preзo:%d", CurrentID, FotherCorrent, iCarro[FotherCorrent][Modelo], iCarro[FotherCorrent][Preco]);
    return FotherCorrent++;
}

stock StartBuying(pid)
    return ShowPlayerDialog(pid, DIALOG_CARROS, DIALOG_STYLE_LIST,"~ Concessionбria ~","Efetuar Compra de veiculo\nVisualizar Modelo","Proximo","Fechar");

ComprarVeiculo(playerid, vehicleid, preco);
public ComprarVeiculo(playerid, vehicleid, preco)
{
    if(GetPlayerMoney(playerid) < preco)
        return SendClientMessage(playerid, -1,"Vocк nгo grana suficiente para comprar este carro");

    if(pInfo[playerid][iModelo1] == 0)
    {
        pInfo[playerid][iModelo1] = vehicleid;
        pInfo[playerid][Carro1] = CreateVehicle(vehicleid, 2809.5098,-1822.0376,9.7244, 86.4366, pInfo[playerid][Cor1Car1], pInfo[playerid][Cor2Car1], 999999999999996);
        PutPlayerInVehicle(playerid, pInfo[playerid][Carro1], 0);
        GivePlayerMoney(playerid, -preco);
        pInfo[playerid][Money1] = preco;
        SalvarConc(playerid);
        SendClientMessage(playerid, 0xFF00FFAA,"Para ver os comandos de seu veнculo digite {C9C9C9}(/v)eiculo help!");
        ShowPlayerDialog(playerid, DIAL_SELCORCAR1, DIALOG_STYLE_LIST,"~ Concessionбria:Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");
        return 1;
    }
    if(pInfo[playerid][iModelo2] == 0)
    {
        pInfo[playerid][iModelo2] = vehicleid;
        pInfo[playerid][Carro2] = CreateVehicle(vehicleid, 2809.5098,-1822.0376,9.7244, 86.4366, pInfo[playerid][Cor1Car2], pInfo[playerid][Cor2Car2], 999999999999996);
        PutPlayerInVehicle(playerid, pInfo[playerid][Carro2], 0);
        GivePlayerMoney(playerid, -preco);
        pInfo[playerid][Money2] = preco;
        SalvarConc(playerid);
        SendClientMessage(playerid, 0xFF00FFAA,"Para ver os comandos de seu veнculo digite {C9C9C9}(/v)eiculo help!");
        ShowPlayerDialog(playerid, DIAL_SELCORCAR2, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");
        return 1;
    }
    SendClientMessage(playerid, -1,"Vocк jб tem 2 carros! Venda um para depois comprar outro!");
    return 1;
}
//aqui terminar oq vc tem q colocar no fim do GM
////////////////////////////////////////////////////////////////////////////////

//Coloque isso dentro da public OnPlayerConnect
    pInfo[playerid][iModelo1] = 0;
    pInfo[playerid][iModelo2] = 0;
    pInfo[playerid][carro2x]  = 0.0;
    pInfo[playerid][carro2y]  = 0.0;
    pInfo[playerid][carro2z]  = 0.0;
    pInfo[playerid][carro1x]  = 0.0;
    pInfo[playerid][carro2y]  = 0.0;
    pInfo[playerid][carro2z]  = 0.0;

    CarregarConc(playerid);

    if(pInfo[playerid][iModelo1] != 0)
    {
        pInfo[playerid][Carro1] = CreateVehicle(pInfo[playerid][iModelo1], pInfo[playerid][carro1x], pInfo[playerid][carro1y], pInfo[playerid][carro1z], pInfo[playerid][Angulo1], pInfo[playerid][Cor1Car1], pInfo[playerid][Cor2Car1], 9999999999);
    }
    if(pInfo[playerid][iModelo2] != 0)
    {

        pInfo[playerid][Carro2] = CreateVehicle(pInfo[playerid][iModelo2], pInfo[playerid][carro2x], pInfo[playerid][carro2y], pInfo[playerid][carro2z], pInfo[playerid][Angulo2],  pInfo[playerid][Cor1Car2], pInfo[playerid][Cor2Car2], 9999999999);
    }


//Coloque isso dentro da public OnGameModeInit
    CreatePickup(1318, 23, 2812.8137,-1821.9536,9.9361);// 2812.8137,-1821.9536,9.9361
    Create3DTextLabel("Aperte F para vender seu veiculo.",0x008080FF,2812.8137,-1821.9536,9.9361,10.0,0,0);
    CreateConce("Alabamas", 2780.4939,-1812.2635,11.8438);
    s_AddConceVehicle(402, 50000);
    s_AddConceVehicle(404, 12000);
    s_AddConceVehicle(405, 45000);
    s_AddConceVehicle(409, 110000);
    s_AddConceVehicle(410, 10000);
    s_AddConceVehicle(412, 23000);
    s_AddConceVehicle(415, 135000);
    s_AddConceVehicle(418, 10000);
    s_AddConceVehicle(419, 13500);
    s_AddConceVehicle(421, 36000);
    s_AddConceVehicle(426, 30000);
    s_AddConceVehicle(429, 75000);
    s_AddConceVehicle(434, 135000);
    s_AddConceVehicle(436, 12000);
    s_AddConceVehicle(439, 14500);
    s_AddConceVehicle(442, 25000);
    s_AddConceVehicle(445, 28000);
    s_AddConceVehicle(451, 150000);
    s_AddConceVehicle(458, 13500);
    s_AddConceVehicle(466, 22500);
    s_AddConceVehicle(467, 22500);
    s_AddConceVehicle(474, 14500);
    s_AddConceVehicle(475, 24000);
    s_AddConceVehicle(477, 78000);
    s_AddConceVehicle(479, 23000);
    s_AddConceVehicle(480, 105000);
    s_AddConceVehicle(483, 15000);
    s_AddConceVehicle(491, 29000);
    s_AddConceVehicle(492, 26000);
    s_AddConceVehicle(496, 19000);
    s_AddConceVehicle(506, 105000);
    s_AddConceVehicle(507, 30000);
    s_AddConceVehicle(516, 18000);
    s_AddConceVehicle(517, 20000);
    s_AddConceVehicle(518, 23000);
    s_AddConceVehicle(526, 12000);
    s_AddConceVehicle(527, 11000);
    s_AddConceVehicle(529, 14000);
    s_AddConceVehicle(533, 35000);
    s_AddConceVehicle(534, 27000);
    s_AddConceVehicle(535, 35000);
    s_AddConceVehicle(536, 24000);
    s_AddConceVehicle(540, 28000);
    s_AddConceVehicle(541, 150000);
    s_AddConceVehicle(542, 18000);
    s_AddConceVehicle(545, 35000);
    s_AddConceVehicle(546, 17000);
    s_AddConceVehicle(547, 16000);
    s_AddConceVehicle(549, 16000);
    s_AddConceVehicle(550, 30000);
    s_AddConceVehicle(551, 36000);
    s_AddConceVehicle(555, 60000);
    s_AddConceVehicle(558, 65000);
    s_AddConceVehicle(559, 70000);
    s_AddConceVehicle(560, 105000);
    s_AddConceVehicle(561, 50000);
    s_AddConceVehicle(562, 86000);
    s_AddConceVehicle(565, 47000);
    s_AddConceVehicle(566, 27000);
    s_AddConceVehicle(567, 32000);
    s_AddConceVehicle(575, 22000);
    s_AddConceVehicle(576, 18500);
    s_AddConceVehicle(580, 45000);
    s_AddConceVehicle(585, 15500);
    s_AddConceVehicle(587, 22000);
    s_AddConceVehicle(589, 16500);
    s_AddConceVehicle(602, 28500);
    s_AddConceVehicle(603, 50000);

    //Coloque isso dentro da public OnPlayerCommandText
    if(strcmp("/veiculo", cmdtext, true) == 0 || strcmp("/v", cmdtext, true) == 0)
    {
        if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] == 0) return SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo tem um veнculo comprado na concessionбria!");
        ShowPlayerDialog(playerid, DIALOG_VEHICLE, DIALOG_STYLE_LIST, "~. Menu Veнculo .~","Estacionar\nMeus Carros","Confirmar","Sair");
        return 1;
    }
    if(!strcmp(cmdtext,"/ir_", true))
    {
        SetPlayerPos(playerid, 2810.0361,-1829.5409,9.9241);
        return 1;
    }
    if(!strcmp(cmdtext,"/carro2", true))
    {
        SetPlayerPos(playerid, pInfo[playerid][carro2x], pInfo[playerid][carro2y], pInfo[playerid][carro2z]);
    }

    //Coloque isso dentro da public OnPlayerKeyStateChange
    if(newkeys == KEY_SECONDARY_ATTACK)
    {
        if(VisualizandoModelo[playerid] == true)
        {
            SetPlayerPos(playerid, 2781.6172,-1812.4465,11.8438);
            SetPlayerFacingAngle(playerid, 51.7605);
            TogglePlayerControllable(playerid, 1);
            DestroyVehicle(VConcModelo[playerid]);
            VisualizandoModelo[playerid] = false;
            SetCameraBehindPlayer(playerid);
            return 1;
        }
    }
    if(newkeys & 16)
    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0, 2780.4939,-1812.2635,11.8438)) return StartBuying(playerid);
        if(IsPlayerInRangeOfPoint(playerid, 5.0, 2812.8137,-1821.9536,9.9361)) return ShowPlayerDialog(playerid, DIALOG_VENDCAR, DIALOG_STYLE_LIST,"Qual veiculo vocк deseja vender?","Veнculo 1\nVeнculo 2", "Vender", "Cancelar");
    }
    return 1;

//Coloque isso а cima da public OnDialogResponse (nгo й pra por dentro, й a cima.)
new CarColors[]=
{
    1,
    0,
    6,
    24,
    3,
    11,
    44
};


    //coloque isso DENTRO da public OnDialogResponse
    if(dialogid == DIAL_SELCOR2_CAR1)
    {
        if(!response)
            return ShowPlayerDialog(playerid, DIAL_SELCOR, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");

        pInfo[playerid][Cor1Car2] = CarColors[listitem];
        ChangeVehicleColor(pInfo[playerid][Carro1], CarColors[listitem], pInfo[playerid][Cor2Car1]);
    }
    else if(dialogid == DIAL_SELCOR1_CAR1)
    {
        if(!response)
            return ShowPlayerDialog(playerid, DIAL_SELCOR, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");

        if(response)
        {
            pInfo[playerid][Cor1Car1] = CarColors[listitem];
            ChangeVehicleColor(pInfo[playerid][Carro1], CarColors[listitem], pInfo[playerid][Cor2Car1]);
        }
    }
    else if(dialogid == DIAL_SELCORCAR1)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, DIAL_SELCOR1_CAR1, DIALOG_STYLE_LIST,"Concessionбra: Cor do carro nє1","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");
            }
            if(listitem == 1)
            {
                ShowPlayerDialog(playerid, DIAL_SELCOR2_CAR1, DIALOG_STYLE_LIST,"Concessionбra: Cor do carro nє2","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");
            }
        }
    }
    else if(dialogid == DIAL_SELCOR1_CAR2)
    {
        if(!response)
            return ShowPlayerDialog(playerid, DIAL_SELCOR, DIALOG_STYLE_LIST,"~ Concessionбria: Cor","Mudar Cor 1 do veiculo\nMudar Cor 2 do Veiculo","Mudar","Fechar");

        if(response)
        {
            pInfo[playerid][Cor1Car2] = CarColors[listitem];
            ChangeVehicleColor(pInfo[playerid][Carro2], pInfo[playerid][Cor1Car2], pInfo[playerid][Cor2Car2]);
        }
    }
    else if(dialogid == DIAL_SELCORCAR2)
    {
        if(response)
        {
            if(listitem == 0)
                return ShowPlayerDialog(playerid, DIAL_SELCOR1_CAR2, DIALOG_STYLE_LIST,"Concessionбra","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");

            if(listitem == 1)
                return ShowPlayerDialog(playerid, DIAL_SELCOR2_CAR2, DIALOG_STYLE_LIST,"Concessionбra","Branco\nPreto\nAmarelo\nCinza\nVermelho\nPrata\nVerde","Mudar","Voltar");
        }
    }
    else if(dialogid == DIALOG_VEHICLE)
    {
        if(!response) return SendClientMessage(playerid, 0xFFFF00AA, "Cuidado!{E31919} Seja cauteloso com o local que irб estacionar seu veнculo!");
        if(response)
        {
            if(listitem == 0)
            {
                if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFAA,"Vocк nгo estб dentro de um veнculo!");
                if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] == 0) return SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo tem um veнculo comprado na concessionбria!");
                static Float:xpos,Float:ypos,Float:zpos;
                GetPlayerPos(playerid, Float:xpos, Float:ypos, Float:zpos);
                RemovePlayerFromVehicle(playerid);
                if(GetVehicleModel(GetPlayerVehicleID(playerid)) == pInfo[playerid][iModelo1])
                {
                    pInfo[playerid][carro1x]    = xpos+1.1;
                    pInfo[playerid][carro1y]    = ypos;
                    pInfo[playerid][carro1z]    = zpos;
                    SalvarConc(playerid);
                    GameTextForPlayer(playerid, "~r~Veiculo estacionado", 3000, 3);
                    return 1;
                }
                else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == pInfo[playerid][iModelo2])
                {
                    pInfo[playerid][carro2x]    =  xpos+1.1;
                    pInfo[playerid][carro2y]    =  ypos;
                    pInfo[playerid][carro2z]    =  zpos;
                    SalvarConc(playerid);
                    GameTextForPlayer(playerid, "~r~Veiculo estacionado", 3000, 3);
                    return 1;
                }
            }
            if(listitem == 1)
            {
                new ascar[128];
                if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] == 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro 'Nenhum'  | Modelo: 0\n\
                    Vocк tem o carro 'Nenhum' | Modelo: 0\nVocк tem nenhum carro, compre algum!."
);
                }
                if(pInfo[playerid][iModelo1] != 0 && pInfo[playerid][iModelo2] != 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro '%s'  | Modelo: %i\n\
                    Vocк tem o carro '%s' | Modelo: %i\n"
, vehicle[pInfo[playerid][iModelo1] - 400], pInfo[playerid][iModelo1], vehicle[pInfo[playerid][iModelo2] - 400], pInfo[playerid][iModelo2]);
                }
                if(pInfo[playerid][iModelo1] != 0 && pInfo[playerid][iModelo2] == 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro '%s'  | Modelo: %i\n\
                    Vocк tem o carro 'Nenhum' | Modelo: 0\n"
, vehicle[pInfo[playerid][iModelo1] - 400], pInfo[playerid][iModelo1]);
                }
                if(pInfo[playerid][iModelo1] == 0 && pInfo[playerid][iModelo2] != 0)
                {
                    format(ascar, sizeof(ascar),"Vocк tem o carro 'Nenhum'  | Modelo: 0\n\
                    Vocк tem o carro '%s' | Modelo: %i\n"
, vehicle[pInfo[playerid][iModelo2] - 400], pInfo[playerid][iModelo2]);
                }
                ShowPlayerDialog(playerid, 654, DIALOG_STYLE_MSGBOX,"Concessionбria", ascar, "Ok","");
            }
        }
    }
    if(dialogid == DIALOG_VENDCAR)
    {
        if(response)
        {
            if(listitem == 0)
            {
                if(pInfo[playerid][iModelo1] == 0)
                    return SendClientMessage(playerid, -1,"Vocк nгo tem este veнculo!");
                {
                    DestroyVehicle(pInfo[playerid][Carro1]);
                    pInfo[playerid][Carro1]     = 0;
                    pInfo[playerid][iModelo1]   = 0;
                    GameTextForPlayer(playerid, "~g~Veiculo Vendido", 3000, 3);
                    GivePlayerMoney(playerid, pInfo[playerid][Money1]/2);
                    return 1;
                }
            }
            else if(listitem == 1)
            {
                if(pInfo[playerid][iModelo2] == 0)
                    return SendClientMessage(playerid, -1,"Vocк nгo tem este veнculo!");
                else
                {
                    DestroyVehicle(pInfo[playerid][Carro2]);
                    pInfo[playerid][Carro2]     = 0;
                    pInfo[playerid][iModelo2]   = 0;
                    GameTextForPlayer(playerid, "~g~Veiculo Vendido", 3000, 3);
                    GivePlayerMoney(playerid, pInfo[playerid][Money2]/2);
                    return 1;
                }
            }
        }
    }
    if(dialogid == DIALOG_CARROS)
    {
        if(response)
        {
            if(listitem == 0)
            {
                new textdialog[3900],strlol[100];
                for(new i; i < FotherCorrent; ++i)
                {
                    format(strlol, sizeof(strlol),"{FFA500}%s {FFFFFF}» Preзo: {7CFC00}${00BFFF}%d\n",vehicle[ iCarro[i][Modelo] - 400], iCarro[i][Preco]);
                    strcat(textdialog, strlol);
                    printf(strlol);
                }
                ShowPlayerDialog(playerid, DALOG_SELECT_CAR, DIALOG_STYLE_LIST,"Qual carro vocк deseja comprar?",textdialog,"Comprar","Cancelar");
            }
            if(listitem == 1)
            {
                new textdialog[3900],strlol[100];
                for(new i; i < FotherCorrent; ++i)
                {
                    format(strlol, sizeof(strlol),"{FFA500}%s {FFFFFF}» Preзo: {7CFC00}${00BFFF}%d\n",vehicle[ iCarro[i][Modelo] - 400], iCarro[i][Preco]);
                    strcat(textdialog, strlol);
                    printf(strlol);
                }
                ShowPlayerDialog(playerid, DALOG_SELECT_CAR_VIS, DIALOG_STYLE_LIST,"Qual carro vocк deseja visualizar?",textdialog,"Visualizar","Cancelar");
            }
        }
        return 1;
    }
    if(dialogid == DALOG_SELECT_CAR_VIS)
    {
        if(response)
        {
            SetPlayerCameraPos(playerid, -1662.796875, 1212.473022, 21.156250);
            SetPlayerCameraLookAt(playerid,  -1652.571777, 1208.198364, 20.881875);
            SetPlayerPos(playerid, -1682.210815, 1211.037231, 31.671875);
            TogglePlayerControllable(playerid, 0);
            VConcModelo[playerid] = CreateVehicle(iCarro[listitem][Modelo], -1652.571777, 1208.198364, 20.881875, 40.5183, 1, 1, 5000);
            SendClientMessage(playerid, 0xFFFFFFAA, "Para sair do modo visualizar modelo pressione {E31919}ENTER");
            VisualizandoModelo[playerid] = true;
        }
    }
    if(dialogid == DALOG_SELECT_CAR)
    {
        if(response)
        {
            CallLocalFunction("ComprarVeiculo", "iid", playerid, iCarro[listitem][Modelo], iCarro[listitem][Preco]);
        }
    }
ta comentado, qq erro sу postar aq.
Reply
#6

Ai coloquei do jeitinho que ta ai.
Nгo deu erro mais nao salvo. compilo como se fosse uma FS,

pawn Код:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
Nao salvo o GM.
Reply
#7

Fiz agora e deu, mais estas a dar esses erros.
pawn Код:
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1231) : error 021: symbol already defined: "pInfo"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1330) : error 008: must be a constant expression; assumed zero
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1330) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1748) : error 017: undefined symbol "CreateConce"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1749) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1750) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1751) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1752) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1753) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1754) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1755) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1756) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1757) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1758) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1759) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1760) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1761) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1762) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1763) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1764) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1765) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1766) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1767) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1768) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1769) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1770) : error 017: undefined symbol "s_AddConceVehicle"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Reply
#8

Quote:
Originally Posted by CaioMors
Посмотреть сообщение
Fiz agora e deu, mais estas a dar esses erros.
...[/pawn]
Isto deve resolver o seu problema .


Vб atй a primeira linha de seu GameMode e, ao chegar lб, tecle Ctrl + H e coloque :



Ao lado de "Search for": pInfo[

Ao lado de "Replace with": pInfoConce[



Depois aperte no em "OK" e em seguida em "Yes to all" .



Por fim, coloque no Final do GM:


pawn Код:
stock CreateConce(x_Nome[], Float:p_X, Float:p_Y, Float:p_Z)
{
    format(iConce[CurrentID][c_Nome],   MAX_cNAME, x_Nome);
    iConce[CurrentID][c_PickX]          = p_X;
    iConce[CurrentID][c_PickY]          = p_Y;
    iConce[CurrentID][c_PickZ]          = p_Z;
    CreatePickup(1318, 23, iConce[CurrentID][c_PickX], iConce[CurrentID][c_PickY], iConce[CurrentID][c_PickZ]);
    Create3DTextLabel("Aperte F para adiquirir um veiculo", 0xFF00FFAA, p_X, p_Y, p_Z, 10.0, 50, 0);
    return CurrentID++;
}


stock s_AddConceVehicle(modeid, preco)
{
    iCarro[FotherCorrent][Preco]     = preco;
    iCarro[FotherCorrent][Modelo]    = modeid;
    printf("Carro Adicionado: ID:%i Fother: %i Modelo:%d Preзo:%d", CurrentID, FotherCorrent, iCarro[FotherCorrent][Modelo], iCarro[FotherCorrent][Preco]);
    return FotherCorrent++;
}


Quanto ao erro da linha 1330, poste a mesma para que possamos verificб-la .



Espero ter ajudado .
Reply
#9

rjjj, agora esta a dar estes erros.
pawn Код:
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1748) : error 017: undefined symbol "CreateConce"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1749) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1750) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1751) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1752) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1753) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1754) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1755) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1756) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1757) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1758) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1759) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1760) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1761) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1762) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1763) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1764) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1765) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1766) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1767) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1768) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1769) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1770) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1771) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1772) : error 017: undefined symbol "s_AddConceVehicle"
C:\Documents and Settings\Caio\Desktop\Geral RP 0.3c\Geral RP 0.3c\gamemodes\POU.pwn(1773) : error 017: undefined symbol "s_AddConceVehicle"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Reply
#10

Quote:
Originally Posted by CaioMors
Посмотреть сообщение
rjjj, agora esta a dar estes erros.
...[/pawn]

Eu disse no meu ъltimo post como resolver esse problema , que й de sнmbolo indefinido, ou seja, que ocorre pela falta de cуdigos para atribuir valores a determinados sнmbolos .


Basta colocar no Final do seu GameMode:


pawn Код:
stock CreateConce(x_Nome[], Float:p_X, Float:p_Y, Float:p_Z)
{
    format(iConce[CurrentID][c_Nome],   MAX_cNAME, x_Nome);
    iConce[CurrentID][c_PickX]          = p_X;
    iConce[CurrentID][c_PickY]          = p_Y;
    iConce[CurrentID][c_PickZ]          = p_Z;
    CreatePickup(1318, 23, iConce[CurrentID][c_PickX], iConce[CurrentID][c_PickY], iConce[CurrentID][c_PickZ]);
    Create3DTextLabel("Aperte F para adiquirir um veiculo", 0xFF00FFAA, p_X, p_Y, p_Z, 10.0, 50, 0);
    return CurrentID++;
}


stock s_AddConceVehicle(modeid, preco)
{
    iCarro[FotherCorrent][Preco]     = preco;
    iCarro[FotherCorrent][Modelo]    = modeid;
    printf("Carro Adicionado: ID:%i Fother: %i Modelo:%d Preзo:%d", CurrentID, FotherCorrent, iCarro[FotherCorrent][Modelo], iCarro[FotherCorrent][Preco]);
    return FotherCorrent++;
}


Espero ter ajudado .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)