Class.c - do_start

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 week ago #9860 by JTP
Class.c - do_start was created by JTP
The last 3 Lines after Else is Stock...then i tried do something special for half giants. When I only the Line with max_Hit(ch) it compiles file. But when I added mana and move and I try compile it. It says: expected Expressen before else.why can it compile fine with mana and move for half giants. But not with Them. Any idea ? 
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 1 week ago #9861 by thomas
Replied by thomas on topic Class.c - do_start
You have forgotten your curly braces.

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 week ago #9862 by JTP
Replied by JTP on topic Class.c - do_start
Just around the if part ?

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 week ago #9863 by JTP
Replied by JTP on topic Class.c - do_start
Tried around the if part. It compiled but testchar started with 100 mana and not 50

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 week ago #9864 by JTP
Replied by JTP on topic Class.c - do_start
And the move part isn’t working either.

Please Log in or Create an account to join the conversation.

More
1 year 1 week ago #9865 by thomas
Replied by thomas on topic Class.c - do_start
please, please read a C tutorial. This is absolute basics:
if (statement) 
{
  doStuff();
}
else 
{
  doOtherStuff();
}

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 week ago - 1 year 1 week ago #9866 by JTP
Replied by JTP on topic Class.c - do_start
Thanks a lot for your tutorial. Because if that I was also able to make else if’s
Last edit: 1 year 1 week ago by JTP.

Please Log in or Create an account to join the conversation.

Time to create page: 0.112 seconds