Okay well I've gotten pretty far in making my online RPG but now I'm trying to optimize my code. I have an item who's assigned an ID number on the server side when it's created. I'm trying to send this skill to players only who need it. But for some reason i just can't get it to work.

here is my code:

Code:
function fItem()
{
//in a function:
while(my.id == 0)
{
	if(connection == 2 && my.id == 0 && player != NULL)
	{
		my.sendto = dplay_id;
		send_skill(my.sendto,0);
	}
	wait(1);
}

//inside a while loop somewhere further down the function
if(my.sendto != 0)
{
	send_skill_id(my.sendto,my.id,0);
	my.sendto = 0;
}



i tried changing it to send_skill_to and sending a handle a handle of the player to the server and then having it send it to only him but I just can't get it to work.

If i change it to send_skill(my.sendto,SEND_ALL); everything works fine again. plz help

fastlane I know your out there. I need your help wink. Are you the only one who's got this freaking acknex multiplayer crap figured out?

Last edited by PrenceOfDarkness; 11/28/10 01:16.

"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.