30.05.2016, 21:13
Hey guys, been trying to use enums for database storing purposes, anywho here's the enum(some of it):
and here are the code lines for the formatting a string to the variable:
tho it doesn't really work. Been trying to shift things around and got shitloads of errors.
would love for some help! Thanks :>
PHP код:
enum biz_Lists
{
biz_T,
biz_N[50],
}
new BizTypeList[][biz_Lists] = {
{BUSINESS_TYPE_BANK, "Bank"},
{BUSINESS_TYPE_247, "Grocery Store"},
PHP код:
BizTypeList[biz_T] = bizType;
format(iStr, sizeof(iStr), "%s", BizTypeList[biz_T][biz_N]);
would love for some help! Thanks :>