14.05.2013, 16:49
i made a topic about this before thinking i knew the solution which i didnt but i need your help fixing the real problem
well the whole string returns nothing...
now the money2 is set to 12.34 as a debug which returns the same empty space yet should be the 34
another problem is that the float gets erased to 0.000000 when i use it once and i need to use it twice which is what the money variable was created for suggested by a friend
can anyone help?
pawn Код:
new Float:Money2 = 12.34,
Doll = floatround(Money, floatround_floor),
Cent = floatround(floatfract(Money2)*100));
//Remove Once Finished.
new TestString[150];
format(TestString, sizeof(TestString), "Starter: %f Doll: %i Cent: %i", Doll, Cent);
Quote:
Starter: 0.00000 Doll: 84 Cent: |
another problem is that the float gets erased to 0.000000 when i use it once and i need to use it twice which is what the money variable was created for suggested by a friend
can anyone help?