How to create a constant string
#1

How to create a constant string?

I am trying
Код:
new const INV_OBJ_menuTitle[] = "Inventory";
new dialog_title[64] = INV_OBJ_menuTitle;
and I get the error: error 008: must be a constant expression; assumed zero (on the second line)

but when I try
Код:
const INV_OBJ_menuTitle[] = "Inventory";
new dialog_title[64] = INV_OBJ_menuTitle;
I get the error: error 001: expected token: "=", but found "[" (on the first line)

How am I supposed to set a constant string, is it possible?

Thank you
Reply


Messages In This Thread
How to create a constant string - by rt-2 - 26.01.2017, 18:38
Re: How to create a constant string - by Dayrion - 26.01.2017, 18:40
Re: How to create a constant string - by rt-2 - 26.01.2017, 18:42
Re: How to create a constant string - by Eoussama - 26.01.2017, 18:45
Re: How to create a constant string - by Dayrion - 26.01.2017, 18:54
Re: How to create a constant string - by rt-2 - 26.01.2017, 19:01
Re: How to create a constant string - by Vince - 26.01.2017, 19:34
Re: How to create a constant string - by Dayrion - 26.01.2017, 20:11
Re: How to create a constant string - by rt-2 - 26.01.2017, 22:04
Re: How to create a constant string - by Dayrion - 26.01.2017, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)