How to define strings?
#4

I think you cannot do that. Defined things need to be constants. But you can do this.
pawn Код:
#define STRING "Hello"

new string[50];
format(string, sizeof(string), " "#STRING" world"); // Should print Hello world
print(string);
I may be wrong. But check it out!
Reply


Messages In This Thread
How to define strings? - by Micius - 24.07.2013, 13:22
Re: How to define strings? - by MP2 - 24.07.2013, 13:27
Re: How to define strings? - by Areax - 24.07.2013, 13:28
Re: How to define strings? - by RajatPawar - 24.07.2013, 13:29
Re: How to define strings? - by Micius - 24.07.2013, 13:29

Forum Jump:


Users browsing this thread: 1 Guest(s)