24.05.2010, 19:28
Hi all, I've made a Car Rental system, it all works as it is supposed to, but only for ONE vehicle.
It creates the other vehicles, but does not set them as a hire car, even though I have.
I haven't shown full code due to it is going to be a release.
It creates the other vehicles, but does not set them as a hire car, even though I have.
I haven't shown full code due to it is going to be a release.
pawn Код:
new HireID = -1, Hire[MAX_RENTABLE_VEHICLES];
pawn Код:
stock CreateHireVehicle(Modelid, Float:x, Float:y, Float:z, Float:a, Color1, Color2, price)
{
HireID++;
printf("Hire[HireID] %d", Hire[HireID]);
hData[HireID][HirePrice] = price;
hData[HireID][Hiree] = 501;
hData[HireID][Hired] = 0;
Hire[HireID] = CreateVehicle(Modelid, x, y, z, a, Color1, Color2, -1);
printf("Hire[HireID] %d", Hire[HireID]);
return 1;
}