Justin wrote: <snip> > 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; Above this line, you're missing a }. -D -- - Derek L. Karnes - dkarnes@mystech.com - http://www.erols.com/terek +------------------------------------------------------------+ | 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