<!--QuoteBegin-Pieter Boelen+Aug 17 2005, 04:05 PM--><div class='quotetop'>QUOTE(Pieter Boelen @ Aug 17 2005, 04:05 PM)</div><div class='quotemain'><!--QuoteEBegin-->I am getting error reports with this new functionality as it is in the modpack:
RUNTIME ERROR - file: locations\locations_init.c; line: 188
Invalid function call
RUNTIME ERROR - file: locations\locations_init.c; line: 188
function 'LocationInitModLocations' stack error
RUNTIME ERROR - file: locations\locations_init.c; line: 188
Invalid function call
RUNTIME ERROR - file: locations\locations_init.c; line: 188
function 'LocationInitModLocations' stack error
Could you please look into this, Inez? I suppose it's got to do with me not merging it properly... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
<div align="right">[snapback]128356[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Check this
int n = GetMainCharacter().numlocations;
to
int n = sti(GetMainCharacter().numlocations);
or
ref pc = GetMainCharacter();
int n = sti(pc.numlocations);
And extern function can take param
so it must be
init.....(int n)
{
}
RUNTIME ERROR - file: locations\locations_init.c; line: 188
Invalid function call
RUNTIME ERROR - file: locations\locations_init.c; line: 188
function 'LocationInitModLocations' stack error
RUNTIME ERROR - file: locations\locations_init.c; line: 188
Invalid function call
RUNTIME ERROR - file: locations\locations_init.c; line: 188
function 'LocationInitModLocations' stack error
Could you please look into this, Inez? I suppose it's got to do with me not merging it properly... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
<div align="right">[snapback]128356[/snapback]</div><!--QuoteEnd--></div><!--QuoteEEnd-->
Check this
int n = GetMainCharacter().numlocations;
to
int n = sti(GetMainCharacter().numlocations);
or
ref pc = GetMainCharacter();
int n = sti(pc.numlocations);
And extern function can take param
so it must be
init.....(int n)
{
}