What is the problem with this source edit?

Aeromesi

Custom Instance Maniac
Messages
821
Points
0
Age
33
Location
Custom Instances
Discord
Aeromesi#0293
Github
http://www.github.com/aeromesi
Emulator
I have a source edit that isn't compiling right but it compiles right on eAthena.

Code:
//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... >_<

 
Last edited by a moderator:
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

 
Last edited by a moderator:
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:

 
Last edited by a moderator:
Back
Top