🔒 Locked
array of strings
Advertisement
Original Post
Also I try this:
string[] Vars;
void initvars()
{
Vars[0]="aaaa";
Vars[1]="bbbb";
}
and get this:
saveload.script (3, 1) : Info : Compiling void initvars()
saveload.script (5, 10) : Error : Can't implicitly convert from 'string@&' to 'uint8&'.
saveload.script (6, 10) : Error : Can't implicitly convert from 'string@&' to 'uint8&'.
Build failed
string[] Vars;
void initvars()
{
Vars[0]="aaaa";
Vars[1]="bbbb";
}
and get this:
saveload.script (3, 1) : Info : Compiling void initvars()
saveload.script (5, 10) : Error : Can't implicitly convert from 'string@&' to 'uint8&'.
saveload.script (6, 10) : Error : Can't implicitly convert from 'string@&' to 'uint8&'.
Build failed
Something is very strange here.
Could you give the test_feature a try, to see if that works? If it works then it must be something specific condition of your application that causes this problem in AngelScript.
Hmm, are you perhaps using the CScriptBuilder add-on? If so, the bug may be in that code, as it could be mistaking the [] for metadata strings.
Could you give the test_feature a try, to see if that works? If it works then it must be something specific condition of your application that causes this problem in AngelScript.
Hmm, are you perhaps using the CScriptBuilder add-on? If so, the bug may be in that code, as it could be mistaking the [] for metadata strings.
Either one will work for you. If the one from the 'include' sample does all that you need, then you may safely continue using that.
I plan on improving the CScriptBuilder for future releases, to make it more flexible while processing the #include directives. One thing that I have planned for it is to implement callbacks, so that the application can supply the included files in the way that is most appropriate to the application. It should also have an improved file path resolution, for when the application doesn't handle this itself.
I plan on improving the CScriptBuilder for future releases, to make it more flexible while processing the #include directives. One thing that I have planned for it is to implement callbacks, so that the application can supply the included files in the way that is most appropriate to the application. It should also have an improved file path resolution, for when the application doesn't handle this itself.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement