DRedshot
Senior Member
Posts: 374
Threads: 23
Joined: Jun 2011
Reputation:
11
|
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 |
|