Dialog Selection Help
#1

So i made this car dealership with mSelection include and now when i press to buy a car it gets only one id. Basicly when i buy the car in the top the non-buckled glendale it will take the cost of the second one aswell as the text "You have bought a shit Glendale" for the regular glendale, but i still get the car i picked but the information gets wrong... heres the code:

Код:
    if(listid == carlistjunk4door)
    {
        if(response)
        {
			switch (carlist)
			{
    			case 0:
				{
				    if (GetPlayerCash(playerid) >= 6000)
					{
						new string[128];
					    GivePlayerCash(playerid, -6000);
						new playervehicleid = GetPlayerFreeVehicleId(playerid);
					    CreatePlayerVehicle(playerid, playervehicleid, modelid, -142.8654,1129.1589,19.7500, 357.1790, 0, 0, 0);
					  	format(string, sizeof(string), "You have bought a Glendale");
					  	SendClientMessage(playerid, COLOR_GRAD1, string);
						VehicleSpawned[playerid] = 1;
					}
					else
					{
						SendClientMessageEx(playerid, COLOR_GRAD1, " You don't have enough money to buy this vehicle");
					}
				}
    			case 1:
				{
				    if (GetPlayerCash(playerid) >= 3000)
					{
						new string[128];
					    GivePlayerCash(playerid, -3000);
						new playervehicleid = GetPlayerFreeVehicleId(playerid);
					    CreatePlayerVehicle(playerid, playervehicleid, modelid, -142.8654,1129.1589,19.7500, 357.1790, 0, 0, 0);
					  	format(string, sizeof(string), "You have bought a Shit Glendale");
					  	SendClientMessage(playerid, COLOR_GRAD1, string);
						VehicleSpawned[playerid] = 1;
					}
					else
					{
						SendClientMessageEx(playerid, COLOR_GRAD1, " You don't have enough money to buy this vehicle");
					}
				}
			}
        }
        else SendClientMessage(playerid, 0xFF0000FF, "Canceled Car Purchase");
        return 1;
    }
Reply
#2

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)