How to create a constant string
#6

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
PHP код:
static const INV_OBJ_menuTitle[] = "Inventory"
Код:
static const INV_OBJ_menuTitle[] = "Inventory";
function(attr1)
{
     new dialog_title[64] = INV_OBJ_menuTitle;
}
This is not working, I am still getting "error 008: must be a constant expression; assumed zero" (on fourth line)

Note that I am setting up the variable at the top of my script and trying to use the constant value in a function/callback.

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)