format(str, sizeof str, "%f + %f = %f", CarInfo[vid][avgConsumption], momentanverb, floatadd(CarInfo[vid][avgConsumption], momentanverb) );
SendClientMessageToAll(COLOR_ORANGE, str);
CarInfo[vid][avgConsumption] = floatadd(CarInfo[vid][avgConsumption], momentanverb);
CarInfo[vid][avgConsumptionCount]++;
new Float:dist = GetVehicleDistanceFromPoint(vid, Xb[vid],Yb[vid],Zb[vid]);
format(str, sizeof str, "%f + %f = %f", dist, CarInfo[vid][odoMeter], floatadd(CarInfo[vid][odoMeter], dist) );
SendClientMessageToAll(COLOR_RED, str);
Dieser Code ergibt folgende Berechnungen:
Hatte das schonmal jemand? 28.8 + 28.0 ist ja eher nicht 1105618560.0