Battleground without waiting room

int bg_create2( unsigned short bg_id, unsigned short mapindex, short rx, short ry, const char *ev, const char *dev ) { struct battleground_data *bgd = bg_team_search(bg_id); if ( bgd ) return 0; CREATE(bgd, struct battleground_data, 1); bgd->bg_id = bg_id; bgd->count = 0; bgd->mapindex = mapindex; bgd->x = rx; bgd->y = ry; safestrncpy(bgd->logout_event, ev, sizeof(bgd->logout_event)); safestrncpy(bgd->die_event, dev, sizeof(bgd->die_event)); memset(&bgd->members, 0, sizeof(bgd->members)); idb_put(bg->team_db, bg->team_counter, bgd); return bgd->bg_id;}--------------------------------------if ( bg->create2( script_getnum(st,2), mapindex_name2id( script_getstr(st,3) ), script_getnum(st,4), script_getnum(st,5), script_getstr(st,6), script_getstr(st,7) ) > 0 )
the problem is around there

 
no problem i solved this issue
it because i didn't define bg->create2

default_smile.png


 
Back
Top