Code: Select all
STR_GROUP_NAME :{GROUP}
I've tried the following, but the games just crashes when I try this.
Code: Select all
Group *g; //Some valid pointer to a group
_data_dropdown[0] = STR_GROUP_NAME;
SetDParam(0,g->index);
_data_dropdown[1] = INVALID_STRING_ID;
ShowDropDownMenu(w, _data_dropdown, 0, REW_DATA, 0, 0);