float retuns nothing...
#1

i made a topic about this before thinking i knew the solution which i didnt but i need your help fixing the real problem

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);
well the whole string returns nothing...

Quote:

Starter: 0.00000 Doll: 84 Cent:

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?
Reply


Messages In This Thread
float retuns nothing... - by Terminator1 - 14.05.2013, 16:49
Re: float retuns nothing... - by [HiC]TheKiller - 14.05.2013, 21:30
AW: float retuns nothing... - by HurtLocker - 14.05.2013, 21:32

Forum Jump:


Users browsing this thread: 2 Guest(s)