Author Topic: CityRPG Syntax Error  (Read 1613 times)

I started up my edited CityRPG and got this error.



I don't know what happened.
For the first thing (Syntax Error on scriptobobject line 60) I checked scripttoobject.cs and this is line 60.



That was line 60 of the entire thing though, not where the code begins. (Including the starting //s)

Help!

db =

There's your problem.

What does ^^^db^^^= do?


Causes a syntax error because it doesn't have anything after the =

^s are tabs by the way.

What should I put after db =

whatever you want db to be = to?

but WHAT IS DB?!

(im very new to torquescript)

probably stands for Database or Datablock

Code: [Select]
db = $CityRPG::jobs::datablock;That's what my copy of cityRPG uses, but I don't use it anymore so I can't really say if that will work. There's been so many re releases and edits of it, where people change the name of all the datablocks so it looks like they made it (I believe rykuta did this and brian smith as well a long time ago), then released it. People attempted to fix it and release it, so there are tons of versions in circulation.

Ok. Where do I put that in.

Ok. Where do I put that in.
C'mon, my build is all done. All I need to do is fix this file.

I wonder where you put it. We didn't just discuss that you had half of it earlier in the topic.

Chrono, could you do me a small favor? I'll PM you the file, and you can fix the DB = for me. I can't seem to find it. Wanna help me out?

It's on line ~60-~69 in scriptobject.cs
Use your brain please.