Author Topic: Why does this error keep on coming up?  (Read 634 times)

So I was scripting a weapon with a grenade launcher and it gave me this error when it did not work:
(Yes too lazy to upload)

i think it might be the datablock ProjectileData(mp7Projectile) line, as it has no {} like the below one, or is lacking a ;
yet i don't know how to use datablocks, just looking at it from the script
also, if you go to line 197, there should be a syntax error in that line somewhere

Huh..?

Why is that projectile completely empty?

Both errors, top and bottom, are missing a right curly bracket. Please place one of those at the end of every function.  That should help.

Hope this helps!

Both errors, top and bottom, are missing a right curly bracket. Please place one of those at the end of every function.  That should help.

Hope this helps!

The console often 'Chops' off the rest of the script on error reports. I assume there is one in the actual script.

datablock ProjectileData(mp7Projectile)

That is the problem.
The datablock doesn't even have any contents.

It's at the top so it's not cut off.

Chrono is right. However, the part that's actually causing the error is that you're missing a semi-colon. What you should do (other than removing the empty datablock):

Code: [Select]
datablock ProjectileData(mp7Projectile)
{
//whatever
};