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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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