quest.c:223: error: missing terminating " character
sprintf(buf, "Current Quest Items available for Purchase:\n\r"
"5000qp………the silk-adamantite backpack (backpack)\n\r"
/* …etc. Note that each piece of the string is double quote delimited. */
50qp………set religion to none (set)\n\r
50qp………set religion to none (set)\n\r
quest.c:223: error: missing terminating " character
quest.c:235: error: To undeclared (first use in this function)
quest.c:235: error: (Each undeclared identifier is reported only once
quest.c:235: error: for each function it appears in.)
quest.c:235: error: expected ) before buy
quest.c:235:22: warning: character constant too long for its type
quest.c:235: error: stray \ in program
quest.c:235: error: stray \ in program
quest.c:235:45: warning: missing terminating " character
quest.c:235: error: missing terminating " character
quest.c:236: warning: format not a string literal and no format arguments
here is the kod
214 bufvampire[0] = '\0';
215 if ( ch->class == CLASS_VAMPIRE )
216 sprintf(bufvampire," 50qp………Vampire skill (vampire)\n\r");
217 bufsamurai[0] = '\0';
218 if ( ch->class == 9 )
219 sprintf(bufsamurai,"%s%s%s",
220 " 100qp………Katana quest (katana)\n\r",
221 " 100qp………Second katana quest(sharp)\n\r",
222 " 50qp………Decrease number of death (death)\n\r");
223 sprintf(buf, "Current Quest Items available for Purchase:\n\r\
224 5000qp………the silk-adamantite backpack (backpack)\n\r\
225 1000qp………the Girth of Real Heroism (girth)\n\r\
226 1000qp………the Ring of Real Heroism (ring)\n\r\
227 1000qp………the Real Hero's Weapon (weapon)\n\r\
228 1000qp………100 Practices (practice)\n\r\
229 500qp………Decanter of Endless Water (decanter)\n\r\
230 500qp………350,000 gold pieces (gold)\n\r\
231 250qp………1 constitution (con)\n\r\
232 200qp………tattoo of your religion (tattoo)\n\r%s%s\
233 50qp………remove tattoo of your religion (remove)\n\r\
234 50qp………set religion to none (set)\n\r
235 To buy an item, type 'QUEST BUY <item>'.\n\r",
236 bufsamurai, bufvampire);
237 send_to_char(buf, ch);
238 return;