dialog dont spawn car
#1

Код:
if(dialogid == DIALOG_RENTCAR)
	{
		if(response)
		{
			if(listitem == 0)
			{
				if(inRent[playerid] == 0)
				{
					if(MasinaUnu != 0)
					{
						MasinaUnu--;
						inRent[playerid] = 1;
						IDmasinaInchiriata[playerid] = 526;
						masinaInchiriata[playerid] = CreateVehicle(526, 2148.4204, -1153.0442, 23.6379, -89.1600, -1, -1, 100);
						PutPlayerInVehicle(playerid, masinaInchiriata[playerid], 0);
						SendClientMessage(playerid, COLOR_WHITE, "Ai platit $30.000 pentru a inchiria acest vehicul.");
						SendClientMessage(playerid, COLOR_WHITE, "Ai grija ca cineva sa nu iti fure vehiculul, tu ii vei plati calatoria.");
						SendClientMessage(playerid, COLOR_WHITE, "Poti renunta oricand la masina inchiriata folosind [/unrentveh].");
						GivePlayerCash(playerid, -30000);
					}
					else if(MasinaUnu == 0)
					{
						SendClientMessage(playerid, COLOR_WHITE, "Vehiculul selectat nu se mai afla in stock-ul afacerii!");
					}
				}
			}
		}
	}
what's wrong with this code? it should spawn the vehicle but it doesn't
Reply


Messages In This Thread
dialog dont spawn car - by enzulikeS - 08.05.2018, 12:41
Re: dialog dont spawn car - by TadePoleMG - 08.05.2018, 13:11
Re: dialog dont spawn car - by enzulikeS - 08.05.2018, 13:58
Re: dialog dont spawn car - by enzulikeS - 08.05.2018, 15:27
Re: dialog dont spawn car - by TadePoleMG - 08.05.2018, 15:30
Re: dialog dont spawn car - by Lokii - 08.05.2018, 15:34
Re: dialog dont spawn car - by enzulikeS - 08.05.2018, 15:39
Re: dialog dont spawn car - by enzulikeS - 08.05.2018, 15:45
Re: dialog dont spawn car - by Lokii - 08.05.2018, 15:46
Re: dialog dont spawn car - by ItsRobinson - 08.05.2018, 16:00

Forum Jump:


Users browsing this thread: 3 Guest(s)