• Steam recently changed the default privacy settings for all users. This may impact tracking. Ensure your profile has the correct settings by following the guide on our forums.

Print integers using the mercury sdk

HacKmaN

#include
Does anyone know how I can use the Print funktion of FreePlay's mercury sdk to print ints? The PSP only crashes for me if I try it.
 

Hellcat

Contributor
Code:
char s[256];
sprintf( s, "An INT: %i", 42 );
FreeplayPrint( s );
Try something like this, maybe it works.


//EDIT
moved to "Division By Zero", as this is going to be more generally coding related as about specific HB :)
 

HacKmaN

#include
You forgot to #include <stdio.h>

If I include stdio, I get a conflict types error "time_t" in types.h. The previous declaration was in base.h (In the include folder of the mercury sdk). I tryed deleting the typdef unsigned long time_t out of base.h but then I got a "expected declaration specifiers or ... before * token" error at line 115 so I tryed deleting this line to and after this it says undefined referenc to sprintf again. Sorry for the bad English ;)
 
Top