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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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