Dialog problem!! [URGENT!! REP++]
#1

Hi all...

I have this Car-System with a dialog, when you enter the car it ask you if you want to buy it, if you say yes, it should let select you the color of the car and your money decrease...
But when I say yes, it only decrease my money, and my player exit the car... What can I do?
pawn Код:
//OnDialogResponse and other dialogs
if(PlayerInfo[playerid][PlayerVehicleModel1] == 0)
                {
                    new nome[MAX_PLAYER_NAME];
                     GetPlayerName(playerid,nome,sizeof(nome));
                    ResetPlayerVehicleEx(playerid, 1);
                    PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
                    /*PlayerInfo[playerid][PlayerVehiclePosX1] = CarInfo[i][CarSpawnX];
                    PlayerInfo[playerid][PlayerVehiclePosY1] = CarInfo[i][CarSpawnY];
                    PlayerInfo[playerid][PlayerVehiclePosZ1] = CarInfo[i][CarSpawnZ];
                    PlayerInfo[playerid][PlayerVehicleFacing1] = CarInfo[i][CarSpawnF];
                    PlayerInfo[playerid][PlayerVehicleModel1] = CarInfo[i][CarModel];
                    PlayerInfo[playerid][pPlayerVehicle1Color] = CarInfo[i][CarColor];
                    PlayerInfo[playerid][pPlayerVehicle1Color2] = CarInfo[i][CarColor2];*/

                    PersInfo[i][CarModel] = CarInfo[i][CarModel];
                    PersInfo[i][CarSpawnX] = CarInfo[i][CarSpawnX];
                    PersInfo[i][CarSpawnY] = CarInfo[i][CarSpawnY];
                    PersInfo[i][CarSpawnZ] = CarInfo[i][CarSpawnZ];
                    PersInfo[i][CarSpawnF] = CarInfo[i][CarSpawnF];
                    PersInfo[i][CarColor] = CarInfo[i][CarColor];
                    PersInfo[i][CarColor2] = CarInfo[i][CarColor2];
                    PersInfo[i][Proprietario] = nome[playerid];
                    dini_Create(string);
                dini_IntSet(string, "CarModel", PersInfo[i][CarModel]);
                dini_IntSet(string, "Proprietario", PersInfo[i][Proprietario]);
                dini_FloatSet(string, "CarSpawnX", PersInfo[i][CarSpawnX]);
                dini_FloatSet(string, "CarSpawnY", PersInfo[i][CarSpawnY]);
                dini_FloatSet(string, "CarSpawnZ", PersInfo[i][CarSpawnZ]);
                dini_FloatSet(string, "CarSpawnF", PersInfo[i][CarSpawnF]);
                dini_IntSet(string, "CarColor", PersInfo[i][CarColor]);
                dini_IntSet(string, "CarColor2", PersInfo[i][CarColor2]);
                    CaricaAutoPersonali(i);
                    OnPlayerSave(playerid);
                    RemovePlayerFromVehicle(playerid);
                    //CreatePlayerVehicle(playerid, 1);
                    PlayerInfo[playerid][pCarkey] = nuovaauto[playerid];
                    PutPlayerInVehicle(playerid,PlayerInfo[playerid][pCarkey],0);
                    TempCarID[playerid] = 0;
                    format(string,sizeof(string),"{FFFFFF}Congratulazioni! Hai appena acquistato una {00BFFF}%s! {FFFFFF}L'antifurto и giа integrato..",vehName[PlayerInfo[playerid][PlayerVehicleModel1]-400]);
                    SendClientMessage(playerid,COLOR_YELLOW,string);
                    return 1;
                }
Thanks.
Reply
#2

Um, either I'm blind and can't see it, but there's no place indicating when you select your colors.
Reply
#3

In your Dialog you tell him only the Car Type, How do you want it to see the vehicle Color or even the price ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)