Author Topic: Syntax Errors.  (Read 543 times)

Last night Barakuda came to me and asked me to script a vehicle for him, I said yes.
However I didn't start until a short while ago and I got a syntax error:
Code: [Select]
Loading Add-On: Vehicle_BLANK
Add-Ons/Vehicle_BLANK/server.cs Line: 26 - Syntax error.
>>> Some error context, with ## on sides of error halt:
   description = AudioDefault3d;

   preload = true;

};

datablock AudioProfile(slowImpactSound)

{

   filename    = "./slowimpact.wav";

   description = AudioDefault3d;

   preload = true;

};





// Vehicle //

/////////////

datablock WheeledVehicleData()##
##
{

^category = "Vehicles";

^displayName = "BLANK";

^shapeFile = "./BLANK.dts"; //"~/data/shapes/skivehicle.dts"; //

^emap = true;

^minMountDist = 3;

  

   numMountPoints = 2;

   mountThread[0] = "sit";

   mountThread[1] = "sit";



^maxDamage = 200.00;
>>> Error report complete.

ADD-ON "Vehicle_BLANK" CONTAINS SYNTAX ERRORS
NOTE: "BLANK" Is not the actual vehicle name, I'm just assuming Barakuda wants this kept somewhat secret.

NOTE2: This is taken DIRECTLY from the console.log
« Last Edit: February 25, 2010, 05:34:39 PM by Butler »

Code: [Select]
datablock WheeledVehicleData()
you forgot to give the datablock name of the vehicle

Oh, oops... didn't see that...
It stopped the console spam!

but now it just crashes the game...
« Last Edit: February 25, 2010, 08:49:20 PM by Butler »

It's probably a problem with the model if its crashing the game.

It's probably a problem with the model if its crashing the game.
It was a problem with the model.

Locked.