GetPlayerVehicleID Help
#4

Can you give me an example please?

Код:
enum Cars
{
	Model,CarID,Locked,Name[20],
	Float:Carx,Float:Cary,Float:Carz,Float:Cara,
	Owner[30],Price,Sell,Color1,Color2,
	Float:Expox,Float:Expoy,Float:Expoz,Float:Expoa,
	E1,E2,E3,E4,E5,A1,A2,A3,A4,A5,Stats,Plate[20],
	Keys1[30],Keys2[30],Keys3[30],Keys4[30],TotalKeys,
}

new VehicleSystem[MAX_VEHICLES][Cars];

// Example of work
new vehid = GetPlayerVehicleID(playerid);
for (new i; i<MAX_VEHICLES;i++)
{
     // An example, using format and sendclientmessage will list all car id's
     VehicleSystem[i][CarID];
}
But what happens when a car is destroyed? The 'vehid' will change so will get another row of MySQL and not the correct row because the id on samp is different.
Reply


Messages In This Thread
GetPlayerVehicleID Help - by HidroDF - 02.09.2016, 19:40
Respuesta: GetPlayerVehicleID Help - by HidroDF - 02.09.2016, 22:01
Re: GetPlayerVehicleID Help - by Sew_Sumi - 02.09.2016, 22:51
Respuesta: GetPlayerVehicleID Help - by HidroDF - 02.09.2016, 23:10
Re: GetPlayerVehicleID Help - by venomlivno8 - 03.09.2016, 00:51
Re: GetPlayerVehicleID Help - by Sew_Sumi - 03.09.2016, 01:51
Re: GetPlayerVehicleID Help - by LongQuad - 03.09.2016, 18:01
Re: GetPlayerVehicleID Help - by Sew_Sumi - 03.09.2016, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)