Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add Music to a Area
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#2
RE: Add Music to a Area

Ok, just a little tip on debugging. These 'Fatal Errors' are often very easy to fix.
I won't fix it for you, but I'll tell you how to fix it for yourself.

We'll break down the error:

main(24, 67): - This means On line number 24, character number 67
ERR: - Simply means an error, which is almost always a syntax error
Expected ')' or ',' - This can mean a few things.

The most obvious meaning is that you have forgot to enter a comma, or a close bracket. Check line 24 for a missing close bracket or comma.
If you do not have a missing comma, it can mean there is a problem with your script further up. Make sure all your functions start with an '{', end with a '}' (curly bracket) and make sure there are no other syntax errors.

Edit: In your case it is the latter, look through your code again on lines 6 and 29. You need to make sure your for loop starts with an { and ends with an }. The same goes for the last function.

These are the culprits:
for(int i=0;i< 10;i++){ GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");}
and:
void UsedCrowbarOnDoor(string &in asItem, string &in asEntity)
{
}



(This post was last modified: 04-17-2012, 04:50 PM by DRedshot.)
04-17-2012, 04:44 PM
Find


Messages In This Thread
Add Music to a Area - by meneadeszz - 04-17-2012, 02:53 PM
RE: Add Music to a Area - by DRedshot - 04-17-2012, 04:44 PM
RE: Add Music to a Area - by Stepper321 - 04-17-2012, 05:31 PM
RE: Add Music to a Area - by meneadeszz - 04-17-2012, 09:24 PM
RE: Add Music to a Area - by Stepper321 - 04-18-2012, 02:30 PM



Users browsing this thread: 1 Guest(s)