13 Sep, 2009, Arsenickills wrote in the 1st comment:
Votes: 0
Okay, code base is Dystopia 1.2.7 I keep getting errors on compile. This is what I am getting:

act_info.c:4952: error: expected declaration or statement at end of input

I'm not sure what I am missing although it is probably something I simply overlooked.

Thanks

Arsenickills
13 Sep, 2009, Ssolvarain wrote in the 2nd comment:
Votes: 0
Might want to find line 4952 of act_info.c and possibly post it here for others to help you a bit easier.

Googling leads me to think you're missing a bracket somewhere.
13 Sep, 2009, Arsenickills wrote in the 3rd comment:
Votes: 0
void do_cprompt( CHAR_DATA *ch, char *argument )
{
char buf [ MAX_STRING_LENGTH ];

buf[0] = '\0';
if ( IS_NPC(ch) ) return;

if ( argument[0] == '\0' )
{
do_help( ch, "cprompt" );
return;
}

if( !strcmp( argument, "clear" ) )
{
free_string(ch->cprompt);
ch->cprompt = str_dup( "" );
return;
}
else
{
if ( strlen( argument ) > 50 )
argument[50] = '\0';
smash_tilde( argument );
strcat( buf, argument );
}

free_string( ch->cprompt );
ch->cprompt = str_dup( buf );
send_to_char( "Ok.\n\r", ch );
return;
} /*this is line 4952 as stated earlier*/

Orrin edit: added code tags
14 Sep, 2009, Zeno wrote in the 4th comment:
Votes: 0
If you comment that out, does it compile?
14 Sep, 2009, Arsenickills wrote in the 5th comment:
Votes: 0
Okay I got that problem figured out, now I get this when trying to compile:

fight.c:5639: error: expected identifier or â(â before âifâ
fight.c:5645: error: expected identifier or â(â before âifâ
fight.c:5652: error: expected identifier or â(â before âifâ
fight.c:5663: error: expected identifier or â(â before âifâ
fight.c:5666: error: expected identifier or â(â before âifâ
fight.c:5673: error: expected identifier or â(â before âifâ
fight.c:5678: error: expected identifier or â(â before âifâ
fight.c:5679: error: expected identifier or â(â before âifâ

This is the code starting from the first error line until the end of the file:

if ( dt == gsn_malice )
{
one_hit( ch, victim, dt, 1 );
return;
}

if (!IS_NPC(ch) && IS_CLASS(ch, CLASS_ANTIPALADIN) && IS_SET(ch->pcdata->powers[15], APOWER_MALICE))
{
one_hit(ch,victim,gsn_malice,1);
one_hit(ch,victim,gsn_malice,1);
one_hit(ch,victim,gsn_malice,1);
}

if (IS_CLASS(victim,CLASS_ANTIPALADIN) && IS_SET(victim->pcdata->powers[15], APOWER_TAKAURA))
{
while (number_range(1, 2) != 1)
one_hit(victim, ch, gsn_takaura, 0);
while (number_range(1, 2) != 1)
one_hit(victim, ch, gsn_takaura, 0);
while (number_range(1, 2) != 1)
one_hit(victim, ch, gsn_takaura, 0);
}

/*one_hit*/
if (dt == gsn_takaura) dam *= 3;

/*number_attacks (twice is_npc vict/!is_npc vict)*/
if (IS_CLASS(ch, CLASS_ANTIPALADIN))
{
count += 5;
if (IS_SET(ch->pcdata->powers[15], APOWER_SPEED)) count += 2;
}

/*update_damcap*/
if (IS_CLASS(ch, CLASS_ANTIPALADIN)) max_dam += ch->pcdata->powers[DARKARTS] * 120;

/*hurt_person: Add in some ors so antipaladins can get demon points*/

/*check_parry/check_dodge*/
if (IS_CLASS(ch, CLASS_ANTIPALADIN)) chance -= 30;
if (IS_CLASS(victim, CLASS_ANTIPALADIN)) chance += 30;


Orrin edit: code tags
14 Sep, 2009, David Haley wrote in the 6th comment:
Votes: 0
Please use code tags, and indicate which lines are the ones with the errors.
14 Sep, 2009, Sharmair wrote in the 7th comment:
Votes: 0
If this is the end of your file, it looks like the end got clipped off. All the code you show should be in a
function. From the errors you are getting though, my guess is that you also have a problem before these
lines. Show some code before the first error, maybe there is an end of a function there and these lines
just got copied or moved here by mistake or something.
0.0/7