> ACMD(do_score) > > { > struct time_info_data playing_time; > struct time_info_data real_time_passed(time_t t2, time_t t1); > > > sprintf(buf, "%s Info for %s\r\n", buf, GET_NAME(ch)); > sprinttype(GET_RACE(ch), pc_race_types, buf2); > sprintf(buf, "%sRace: %s", buf, buf2); > sprinttype(GET_CLASS(ch), pc_class_types, buf2); > sprintf(buf, "%s Class: %s\r\n", buf, buf2); > sprintf(buf,"--------------------------------------------------\r\n"); > > sprintf(buf, "You are %d years old.", GET_AGE(ch)); > > > When I execute the score command within the mud, it starts printing info on > the screen starting at the GET_AGE line. Why won't it print anything above it? because you are overwriting the contents of buf each time... that's like: strcpy(buf,"Hello"); strcpy(buf,"There"); printf("%s",buf); what do you expect to output? "Hello There" or just "There"? You're doing essentially the same thing above. Taran. Reign of Towers bpape@ezl.com
This archive was generated by hypermail 2b30 : 12/07/00 PST