I know this is a really stupid, easy mistake that I am just overlooking. But, I am overlooking it; would someone take a look at this and tell me where I made a dumb typo with their fresh eyes. Compiler is tell ing me there is a parse error before the void on line 845. Thanks In Advance Salvatore /* * Roll the 6 stats for a character... each stat is made of the sum of * the best 3 out of 4 rolls of a 6-sided die. Each class then decides * which priority will be given for the best to worst stats. */ void roll_real_abils(struct char_data * ch) { int i, j, k, temp; ubyte table[7]; ubyte rolls[4]; ubyte sup_rolls[5]; switch (GET_RACE(ch)) { case RACE_HUMAN: case RACE_MIPS: for (i = 0; i < 7; i++) table[i] = 0; for (i = 0; i < 7; i++) { for (j = 0; j < 4; j++) rolls[j] = number(1, 6); temp = rolls[0] + rolls[1] + rolls[2] + rolls[3] - MIN(rolls[0], MIN(rolls[1], MIN(rolls[2], rolls[3]))); for (k = 0; k < 7; k++) if (table[k] < temp) { temp ^= table[k]; table[k] ^= temp; temp ^= table[k]; } break; case RACE_MUTANT: case RACE_DRAGON: case RACE_TERRAL: case RACE_9VIDA: for (i = 0; i < 7; i++) table[i] = 0; for (i = 0; i < 7; i++) { for (j = 0; j < 5; j++) sup_rolls[j] = number(1, 6); temp = sup_rolls[0] + sup_rolls[1] + sup_rolls[2] + sup_rolls[3] + sup_rolls[4] - MIN(sup_rolls[0], MIN(sup_rolls[1], MIN(sup_rolls[2], MIN(sup_rolls[3], sup_rolls[4])))); for (k = 0; k < 7; k++) if (table[k] < temp) { temp ^= table[k]; table[k] ^= temp; temp ^= table[k]; } } break;} switch (GET_CLASS(ch)) { case CLASS_FIGHTER: ch->real_abils.str = table[0]; ch->real_abils.dex = table[1]; ch->real_abils.con = table[2]; ch->real_abils.init = table[3]; ch->real_abils.intel = table[4]; ch->real_abils.wis = table[5]; ch->real_abils.cha = table[6]; break; case CLASS_MASTER: ch->real_abils.dex = table[0]; ch->real_abils.init = table[1]; ch->real_abils.str = table[2]; ch->real_abils.con = table[3]; ch->real_abils.wis = table[4]; ch->real_abils.cha = table[5]; ch->real_abils.intel = table[6]; break; case CLASS_HUNTER: ch->real_abils.str = table[0]; ch->real_abils.con = table[1]; ch->real_abils.init = table[2]; ch->real_abils.wis = table[3]; ch->real_abils.dex = table[4]; ch->real_abils.intel = table[5]; ch->real_abils.cha = table[6]; break; <snipped out many other classes> case CLASS_DRAGON: ch->real_abils.str = table[0]; ch->real_abils.intel = table[1]; ch->real_abils.con = table[2]; ch->real_abils.wis = table[3]; ch->real_abils.init = table[4]; ch->real_abils.cha = table[5]; ch->real_abils.dex = table[6]; break; case CLASS_TERRAL: ch->real_abils.con = table[0]; ch->real_abils.str = table[1]; ch->real_abils.intel = table[2]; ch->real_abils.dex = table[3]; ch->real_abils.wis = table[4]; ch->real_abils.init = table[5]; ch->real_abils.cha = table[6]; break; case CLASS_9VIDA: ch->real_abils.dex = table[0]; ch->real_abils.intel = table[1]; ch->real_abils.init = table[2]; ch->real_abils.str = table[3]; ch->real_abils.cha = table[4]; ch->real_abils.con = table[5]; ch->real_abils.wis = table[6]; break; case CLASS_MIPS: ch->real_abils.dex = table[0]; ch->real_abils.wis = table[1]; ch->real_abils.cha = table[2]; ch->real_abils.init = table[3]; ch->real_abils.intel = table[4]; ch->real_abils.str = table[5]; ch->real_abils.con = table[6]; break;} ch->aff_abils = ch->real_abils; } /* Some initializations for characters, including initial skills */ void do_start(struct char_data * ch) <<THIS IS LINE 845^^^^^>> { void advance_level(struct char_data * ch); +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST