Two dimensional string enum array
#1

Hi,

I would like to do something like this but it doesn't compile.. I just started to hate this fucking pawn since in last time I worked with plugins..

pawn Код:
enum e_HouseType
{
    e_szHouseName[2][24], <- THIS LINE ERROR
    e_iPrice
}

new const
    g_szHouseTypes[][e_HouseType] =
    {
        {"Fahбz",           "Tree house",   500000},
        {"Lakбs",           "House",                1000000},
        {"Banda hбz",       "Gang house",           2000000},
        {"Kis csalбdi hбz", "Small family house",   3000000},
        {"Tбrsashбz",       "Condominium",          3000000},
        {"Nagy csalбdi hбz","Big family house",     4500000},
        {"Nyaralу",         "Summer house",         5000000},
        {"Luxus hбz #1",    "Luxus house #1",       7500000},
        {"Luxus hбz #2",    "Luxus house #2",       10000000}
    };

C:\Users\Ati\Desktop\tesztszerver\filterscripts\extract.pwn(133) : error 001: expected token: "}", but found "["
I just started to translate my mode to English, and I need this solution:
pawn Код:
housename = g_szHouseTypes[type_id][language_id][e_szHouseName];
Reply


Messages In This Thread
Two dimensional string enum array - by kurta999 - 19.07.2015, 13:05
Re: Two dimensional string enum array - by Evocator - 19.07.2015, 13:14
Re: Two dimensional string enum array - by Glenn332 - 19.07.2015, 13:16
Re: Two dimensional string enum array - by kurta999 - 19.07.2015, 13:22
Re: Two dimensional string enum array - by IstuntmanI - 19.07.2015, 14:44
Re: Two dimensional string enum array - by kurta999 - 19.07.2015, 16:31

Forum Jump:


Users browsing this thread: 1 Guest(s)