Author Topic: Script not compiling  (Read 310 times)

Legacy_archer4217

  • Full Member
  • ***
  • Posts: 206
  • Karma: +0/-0
Script not compiling
« on: April 26, 2012, 08:47:04 pm »


               Hi all,

I decided to give Calan's horse script a try, but this one script, z_inc_constant, isnt compiling. Here's the line that gets highlighted.

const string sCEP_PH_NORMAL = "2223";

any help is greatly appreciated '<img'>
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Script not compiling
« Reply #1 on: April 26, 2012, 09:19:15 pm »


               hmm link to full script or pasting the code would help, it might hightlight anything but the error may be line before or after, also even if the error would be on this exact line really, without knowing other lines its impossible to fix

and also we need to know the error message it throws, if its "identifier list full" then you have too much constants in your script so you need either remove all useless includes or compile it externaly using command line compiler or use NWN Toolset Extender
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Script not compiling
« Reply #2 on: April 26, 2012, 11:16:42 pm »


               

archer4217 wrote...

Hi all,

I decided to give Calan's horse script a try, but this one script, z_inc_constant, isnt compiling. Here's the line that gets highlighted.

const string sCEP_PH_NORMAL = "2223";

any help is greatly appreciated '<img'>



My guess is that the error message you are getting is " No void main found"  or something like that.   if that is the case the problem is that the script is an "include file".   There is therefor nothing wrong with it.   It is a resource for other scripts that use the constants and will not compile on it own.  You will use the '#include' directive to add the constants to another script for use.