|
textprintf_ex 'problem' |
Albin Engström
Member #8,110
December 2006
|
well, I'll probably drown with links to the manual with this question, but i'm having a really hard time navigating that 'thing'.. anyway, i'm trying to display a value with textprintf_ex but i get some problems.. textprintf_ex(buffer, font, 27, 32, makecol(123,50,50), -1, "X", ((cameraPOS*10+cameraEX)-mouse_y)*100); where cameraPOS is an integred and cameraEX is float. replacing X with %d gives me the wrong output but using &f gives me the right, problem is i don't want it to give me the output as float. i want it to cap it. Thanks in advance . |
GullRaDriel
Member #3,861
September 2003
|
textprintf_ex(buffer, font, 27, 32, makecol(123,50,50), -1, "%d", (int)( ( cameraPOS * 10 + cameraEX ) - mouse_y ) *100 );
"Code is like shit - it only smells if it is not yours" |
Albin Engström
Member #8,110
December 2006
|
Thanks!!! i love this forum.. |
GullRaDriel
Member #3,861
September 2003
|
Heh "Code is like shit - it only smells if it is not yours" |
Kitty Cat
Member #2,815
October 2002
|
Alternatively, you can use -- |
Albin Engström
Member #8,110
December 2006
|
thanks for the additional info ^^! |
|