Aller au contenu

Photo

Script not compiling


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
archer4217

archer4217
  • Members
  • 105 messages
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 :)

#2
Shadooow

Shadooow
  • Members
  • 4 471 messages
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

#3
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

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 :)



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.