Jump to content
  • 0
Aeromesi

What is the problem with this source edit?

Question

I have a source edit that isn't compiling right but it compiles right on eAthena.

//Useage: partyinvite <party id>;BUILDIN_FUNC(partyinvite){int party_id,i = 0;struct map_session_data *sd = script_rid2sd(st ); struct party_data *p; party_id=script_getnum(st,2); p = party_search(party_id);	 if (p ) //Search leaderfor(i = 0; i < MAX_PARTY && !p->party.member[i].leader; i++); if (!p || i == MAX_PARTY) return 0;if(!sd) return 0;sd->party_joining = 1; sd->party_invite = party_id;sd->party_invite_account =  p->party.member[i].account_id; if( party_member_added(party_id,sd->status.account_id,sd->status.char_id,0) )script_pushint(st,1);elsescript_pushint(st,-1);return 0;}

Any help please? thanks.

 

Now I have also added in the DEF'S also, but it still compiles with an error. And I have no idea why :/

 

 

I seriously need a helping hand with this... >_<

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

When you're building those errors are recorded in your compiler log, well I modified it a little bit but I haven't tested in-game, I hope it works

http://pastebin.com/NNkJL21J

Edited by pan

Share this post


Link to post
Share on other sites
  • 0

Yes but on my vps when it errors, the compiler just closes out too fast on me. Pan I shall try this and see what happens

Share this post


Link to post
Share on other sites
  • 0

Well, probably those errors that have happened are because some functions are called differently in Hercules, because its plugin module changed them, in short time using Hercules' source you'll get used to it, or you could just ask for ports in Source Request session c:

Edited by pan

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.