[RP]Some questions about MySQL vehicle system
#1

I found that many Role-Play gamemodes determine a vehicle is whether a cop car like this
Код:
public IsACopCar(carid)
{
	for(new i = 0; i < sizeof(copcar); i++)
	{
		if(carid == copcar[i])	return 1;
	}
	return 0;
}
and create a cop car like this
Код:
new copcar[37];
	copcar[1] = AddStaticVehicleEx(596,1574.4703,-1710.9795,5.6115,0.4220, -1, -1, 30000); 
	copcar[2] = AddStaticVehicleEx(596,1587.4816,-1710.3594,5.6104,358.9421,-1, -1, 30000);
......
And my problem is how to use MySQL to create some cop cars?
Reply
#2

you don't use MYSQL to create them, you only use MYSQL to save the position of the car, and to load the position of the car..
you create the cars with AddStaticVehicle(EX) and then the saved coords..
Reply
#3

Okay. got it sir
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)