06.02.2017, 17:54
I made this from 0, I did not reset them once in the whole gamemode, also if I use this instead of the loop.
It works somehow but the problem is I get the details of the next car.
Example
Car ID: 1 loaded, appears as Car ID 2
Car ID: 2 loaded, appears as Car ID 3
Car ID: 3 loaded, returns 0 on everything
PHP код:
CMD:testcar(playerid, params[])
{
new string[200];
new i = GetPlayerVehicleID(playerid);
format(string, sizeof(string), "Vehicle ID: %d | Vehicle Type: %d, Plate: %s | Owner: %s", VehicleInfo[i][ID], VehicleInfo[i][vType], VehicleInfo[i][vPlate], VehicleInfo[i][vOwner] );
SCM(playerid, COLOR_YELLOW, string);
return 1;
}
Example
Car ID: 1 loaded, appears as Car ID 2
Car ID: 2 loaded, appears as Car ID 3
Car ID: 3 loaded, returns 0 on everything


