08.05.2012, 03:21
#define FString(%0,%1) do{new _fstring[128]; format(_fstring, 128, %0, %1); return _fstring;} while(FALSE)
or
#define FString(%0,%1) do{new _fstring[128]; format(_fstring, 128, %0, %1);} while(FALSE)
then using _fstring and it just said undefined.
I then tried
#define FString(%3,%0,%1) do{new %3[128]; format(%3, 128, %0, %1); } while(FALSE)
Still wouldn't work, does anyone have a define that can easily format a string and return it, i'm trying to make formatting as easy as possible without having to declare new strings ect.
or
#define FString(%0,%1) do{new _fstring[128]; format(_fstring, 128, %0, %1);} while(FALSE)
then using _fstring and it just said undefined.
I then tried
#define FString(%3,%0,%1) do{new %3[128]; format(%3, 128, %0, %1); } while(FALSE)
Still wouldn't work, does anyone have a define that can easily format a string and return it, i'm trying to make formatting as easy as possible without having to declare new strings ect.