12.05.2013, 00:51
So then I can add that to the existing mileage eachtime the timer is killed and save it via mysql?
Would that work?
I converted the enums to work with my script and make a test command.
But the mileage does not increase.
Thoughts?
CMD:miles(playerid,params[]){
new vehicleid = GetPlayerVehicleID(playerid);
printf("MileageDebug: %i", V[vehicleid][miles]);
format(stringsize, sizeof(stringsize), "Mileage is %i", V[vehicleid][miles]);
SendClientMessage(playerid,COLOR_YELLOW,stringsize );
return 1;
}
Would that work?
I converted the enums to work with my script and make a test command.
But the mileage does not increase.
Thoughts?
CMD:miles(playerid,params[]){
new vehicleid = GetPlayerVehicleID(playerid);
printf("MileageDebug: %i", V[vehicleid][miles]);
format(stringsize, sizeof(stringsize), "Mileage is %i", V[vehicleid][miles]);
SendClientMessage(playerid,COLOR_YELLOW,stringsize );
return 1;
}