logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
need a lil help

 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Frang



Joined: 22 May 2005
Posts: 32

PostPosted: Sun May 22, 2005 22:53    Post subject: need a lil help Reply with quote

I have used this system before but have been away from nwn for a long time and im getting into it again but im having problems getting the aps_include file to compile

I do a mod build and my on client enter and on mod load scripts won't compile due to this error in aps_include

Quote:
5/22/2005 4:50:12 PM: Error. 'hc_on_cl_enter' did not compile.
aps_include.nss(65): ERROR: FUNCTION IMPLEMENTATION AND DEFINTITION DIFFER

this is whats on line 65
Code:
void SetPersistentString(object oObject, string sVarName, string sValue, int iExpiration =0, string sTable = "pwdata");


any help on this would be much appreciated[/code][/quote]
Back to top
View user's profile Send private message
JeroenB



Joined: 31 Dec 2004
Posts: 228
Location: Netherlands

PostPosted: Mon May 23, 2005 8:28    Post subject: Reply with quote

And how do you call that function?You might also want to look if the definition in the top of the file is the same as that implementation at line 65
Back to top
View user's profile Send private message Visit poster's website
Frang



Joined: 22 May 2005
Posts: 32

PostPosted: Mon May 23, 2005 13:04    Post subject: Reply with quote

in hc_on_cl_enter at the top i have

#include "aps_include also have it at the top of hc_on_mod_load and get the same error.
Back to top
View user's profile Send private message
JeroenB



Joined: 31 Dec 2004
Posts: 228
Location: Netherlands

PostPosted: Tue May 24, 2005 13:10    Post subject: Reply with quote

Is it accidental that you forgot the closing " ?

Perhaps you should post the your complete script that is calling the APS functions. Then we have more chance to see what is going wrong.
Back to top
View user's profile Send private message Visit poster's website
Frang



Joined: 22 May 2005
Posts: 32

PostPosted: Tue May 24, 2005 14:40    Post subject: Reply with quote

yeah just missed the " when i copied it to post here. But I remembered that its just an issue with aps and hcr but the Persistant Facade fixes the issue used it and got it working but thanks for the reply Smile
Back to top
View user's profile Send private message
maka



Joined: 14 May 2008
Posts: 3

PostPosted: Wed May 14, 2008 1:42    Post subject: Reply with quote

has anyone solved this issue?

I imported the aps.erf, and the code won't compile.

Thanks.
Back to top
View user's profile Send private message
Tempest



Joined: 26 Feb 2008
Posts: 32

PostPosted: Wed May 14, 2008 5:10    Post subject: Reply with quote

no sorry it loaded and compiled just fine for me....
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Extreme



Joined: 28 Nov 2007
Posts: 135

PostPosted: Thu Jul 17, 2008 11:52    Post subject: Reply with quote

For any who didnt get the answer...the proper line is...

Code:
#include "aps_include"


also, if you want the SetPersist... to show up in the function lists, you need to remove the word wrap on the functions
Back to top
View user's profile Send private message
maka



Joined: 14 May 2008
Posts: 3

PostPosted: Wed Oct 01, 2008 17:03    Post subject: Reply with quote

I'm gettting the same error:
ERROR: FUNCTION IMPLEMENTATION AND DEFINTITION DIFFER

I never use the function, SetPersistentString.

The implementation and definition are exactly correct. I even used a diff to make sure my eyes weren't just playing tricks on me.

Funny thing is, if I comment that function out (since I don't use it) it just moves down to the next function and says the same thing (but for the next function).

Anyone have any meaningful resolutions?

Thanks!
Back to top
View user's profile Send private message
maka



Joined: 14 May 2008
Posts: 3

PostPosted: Wed Oct 01, 2008 17:46    Post subject: Reply with quote

Nevermind. I just scrapped aps_include and copied over the functions I needed to another script.
Back to top
View user's profile Send private message
kungfoowiz



Joined: 12 Oct 2006
Posts: 61

PostPosted: Mon Oct 20, 2008 18:47    Post subject: Reply with quote

Hello Peeps!

Well, the error there is that the definition and the implementation differ, which means you need to check the parameter types between the declarations and make sure they're the same, although the names may differ, the number of variables types must be the same.

Also if you've done any edits to the aps_include file, then you should check whether your braces are all paired, and that the function closure brackets are also in pairs.
Sometimes this can flag up as an implementation difference, technically it is, but it's most likely a typo somewhere.

There may be a missing brace or bracket somewhere, or the declaraion and definition are indeed diffferent.

Edward
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group