void ConfigVoteMenu (edict_t * ent, pmenu_t * p) { char buf[1024], sbuf[512]; PMenu_Close (ent); if (_ConfigMostVotesStr (sbuf)); sprintf (buf, "most: %s", sbuf); if (xMenu_New (ent, CONFIGMENUTITLE, buf, AddConfigToMenu) == false) gi.cprintf (ent, PRINT_MEDIUM, "No config to vote for.\n"); }
void _ConfigWithMostVotes (void) { char buf[1024], sbuf[512]; if (_ConfigMostVotesStr (sbuf)) { sprintf (buf, "Most wanted config: %s\n", sbuf); gi.bprintf (PRINT_HIGH, strtostr2 (buf)); } }
void _ConfigWithMostVotes (void) { char buf[1024], sbuf[512]; if (_ConfigMostVotesStr(sbuf)) { Com_sprintf(buf, sizeof(buf), "Most wanted config: %s", sbuf); G_HighlightStr(buf, buf, sizeof(buf)); gi.bprintf(PRINT_HIGH, "%s\n", buf); } }