Jump to content
  • 0
Sign in to follow this  
Kichi

Battleground without waiting room

Question

4 answers to this question

Recommended Posts

  • 0
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

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.