26.09.2015, 15:41
Код HTML:
E@_R[GetPlayerVehicleID(playerid)] = floatround(Veh[r][KM], floatround_round); printf("FLOATR: %s", floatround(Veh[r][KM], floatround_round));// DEBUG
Код HTML:
FLOATR: 2.312
Veh[r][KM] is 0.751, not 2.312.
E@_R[GetPlayerVehicleID(playerid)] = floatround(Veh[r][KM], floatround_round); printf("FLOATR: %s", floatround(Veh[r][KM], floatround_round));// DEBUG
FLOATR: 2.312
E@_R[Veh[r][ServerID]] = floatround(Veh[r][KM], floatround_round); printf("FLOATR: %d", floatround(Veh[r][KM], floatround_round));// DEBUG
FLOATR: 1
OK.
Код HTML:
E@_R[Veh[r][ServerID]] = floatround(Veh[r][KM], floatround_round); printf("FLOATR: %d", floatround(Veh[r][KM], floatround_round));// DEBUG Код HTML:
FLOATR: 1 Veh[r][KM] is 0.751, not 1. Normal should be: 0751. |
E@_R[Veh[r][ServerID]] = floatround(Veh[r][KM] * 1000.0, floatround_round); printf("FLOATR: %d", E@_R[Veh[r][ServerID]]);// DEBUG