Got it down to 1.
crafts.c:555: error: expected identifier or '(' before 'else'
Code:
if (rand < crit) {
if (real_object(CRAFT_CRIT_OBJVNUM(craft)) != NOTHING && rand < crit) {}
remove_components(ch, craft, TRUE);
obj_to_char(obj, ch);
act(CRAFT_CRIT_MSG_SELF(craft), TRUE, ch, obj, 0, TO_CHAR);
act(CRAFT_CRIT_MSG_ROOM(craft), TRUE, ch, obj, 0, TO_NOTVICT);
}
} else { <-----555
if (skill > rand) {
if ((obj = read_object(CRAFT_OBJVNUM(craft), VIRTUAL)) == NULL) {
send_to_char(ch, "You seem to have an issue with your crafting.\r\n");
mudlog(CMP, LVL_GOD, TRUE, "SYSERR: Event Craft called without created object.");
return (0);
}
if I make it an open ended bracket here --> if (real_object(CRAFT_CRIT_OBJVNUM(craft)) != NOTHING && rand < crit) {
it spits out more than just the 1,
crafts.c: In function 'event_craft':
crafts.c:640: error: invalid storage class for function 'copy_requirement'
crafts.c:645: error: invalid storage class for function 'copy_craft'
crafts.c:696: error: invalid storage class for function 'craftedit_setup_new'
crafts.c:795: error: invalid storage class for function 'craftedit_disp_skill_menu'
crafts.c:812: error: invalid storage class for function 'craftedit_disp_req_flags'
crafts.c:830: error: invalid storage class for function 'craftedit_disp_craft_flags'
crafts.c:848: error: invalid storage class for function 'craftedit_requirement_menu'
crafts.c:870: error: invalid storage class for function 'craftedit_disp_menu'
crafts.c:1233: error: expected declaration or statement at end of input
otherise It only gives me the 1 error
Sorry I know I'm probably being a pain, but I will overlook a bracket or ; or a declaration when it's right in front of my face