[Help] CarShop System (VehicleCoast Is not working)
#1

Init
//CARSHOP FUNCTIONS AND CONFIGURATION?
CreateCarshopGlobalTD();
CreateCarshopCar(522,-395.9633,1264.1262,6.7897,184.2291, 11000); //Vehice id, Cords and coast (11000)
Код:
/* CARSHOP SYSTEM */
stock CreateCarshopCar(modelid, Float:carsX, Float:carsY, Float:carsZ, Float:carsA, price)
{
	CarshopCars++;
	CarShop_I[CarshopCars][carshopID] = CarshopCars;
	CarShop_I[CarshopCars][carshopModel] = modelid;
	CarShop_I[CarshopCars][carshopPrice] = price;
	CarShop_I[CarshopCars][carshopVehicle] = CreateVehicle(modelid, carsX, carsY, carsZ, carsA, -1, -1, 100);
	printf("ID- %d CARSHOPVEHICLE", CarShop_I[CarshopCars][carshopVehicle]);
	return 1;
}
///////////////////
stock SetCarshopCarPriceForTD(playerid, carshopvalue)
{
	new scscpft[32];
	format(scscpft, sizeof(scscpft), "%d$", carshopvalue);
	PlayerTextDrawSetString(playerid, CarshopPTD[playerid][1], scscpft);
}
Reply
#2

Quote:
Originally Posted by Fletcher007
Посмотреть сообщение
Init
//CARSHOP FUNCTIONS AND CONFIGURATION?
CreateCarshopGlobalTD();
CreateCarshopCar(522,-395.9633,1264.1262,6.7897,184.2291, 11000); //Vehice id, Cords and coast (11000)
Код:
/* CARSHOP SYSTEM */
stock CreateCarshopCar(modelid, Float:carsX, Float:carsY, Float:carsZ, Float:carsA, price)
{
	CarshopCars++;
	CarShop_I[CarshopCars][carshopID] = CarshopCars;
	CarShop_I[CarshopCars][carshopModel] = modelid;
	CarShop_I[CarshopCars][carshopPrice] = price;
	CarShop_I[CarshopCars][carshopVehicle] = CreateVehicle(modelid, carsX, carsY, carsZ, carsA, -1, -1, 100);
	printf("ID- %d CARSHOPVEHICLE", CarShop_I[CarshopCars][carshopVehicle]);
	return 1;
}
///////////////////
stock SetCarshopCarPriceForTD(playerid, carshopvalue)
{
	new scscpft[32];
	format(scscpft, sizeof(scscpft), "%d$", carshopvalue);
	PlayerTextDrawSetString(playerid, CarshopPTD[playerid][1], scscpft);
}
How's it not working? from what i'm seeing it should work you can not just post code and say it doesnt work explain more and provide more info.
Reply
#3

The code cannot save car prices example Sultan 10.000$ And Elegy 5.000$ when u are going to buy sultan car price make changes Sultan 5.000$ like that, S2 for bed english
Reply
#4

Try changing this
new scscpft[32];
Reply
#5

Same problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)