02.09.2016, 23:10
Can you give me an example please?
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.
Код:
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]; }