19.07.2015, 13:05
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..
I just started to translate my mode to English, and I need this solution:
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 "["
pawn Код:
housename = g_szHouseTypes[type_id][language_id][e_szHouseName];