[help] Need a define that returns a formatted string
#1

#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.
Reply


Messages In This Thread
[help] Need a define that returns a formatted string - by DeathTone - 08.05.2012, 03:21
Re: [help] Need a define that returns a formatted string - by MP2 - 08.05.2012, 06:45
Re: [help] Need a define that returns a formatted string - by 2KY - 08.05.2012, 11:34
Re: [help] Need a define that returns a formatted string - by 2KY - 08.05.2012, 11:37
Re: [help] Need a define that returns a formatted string - by DeathTone - 08.05.2012, 22:50

Forum Jump:


Users browsing this thread: 2 Guest(s)