if(global.host)
{
clearbuffer() /*making sure nothing else is being sent to the other IP*/
writestring("Host Data") /*just marking data*/
writeint(x) /*sending coordinates*/
writeint(y)
writeshort(round(angle)) /*coordinate to mouse angle(eyes)*/
bufferencrypt("blahh"); /*encrypting*/
sendmessage(<OtherIP>);/*finally sending data to the other comp..*/
bufferdecrypt("blahh") /*recieving*/
S=readstring() /*pointlessness*/
X=readint() /*recieving the other IP's coordinates*/
Y=readint()
Angle=readshort() /*and angle*/
}else
{
clearbuffer() /*other IP (2 player game anyways)*/
writestring("Other Data")
writeint(x)
writeint(y)
writeshort(round(angle))
bufferencrypt("blahh");
sendmessage(<HostIP>);
bufferdecrypt("blahh")
S=readstring()
X=readint()
Y=readint()
Angle=readshort()
}
it seems that it sends (X,Y,Angle) it to the same computer...
and i am using 2 different comps
also
draw_sprite(sprite_index,0,x,y) draw_sprite_ext(sprite_index,1,x,y,1,1,angle,c_white,1) draw_sprite(sprite_index,0,X,Y) draw_sprite_ext(sprite_index,1,X,Y,1,1,Angle,c_white,1)this supposeably gonna draw my other player...
i dont know what i did wrong..
and im using hamachi...
help would be appreciated











