I'm working on a multiplayer function in my game but i cant get it to work, connecting to a server etc. goes fine but when I have 2 open windows of my game I cant see the other player :/
here is my get code:
get net message
while net message exists()=1
packet$=net message string$()
readmpdata()
player=NET MESSAGE PLAYER FROM()
if object exist(player)=0
make object box player,2,5,2
endif
position object player,val(mpdata$(1)),val(mpdata$(2)),val(mpdata$(3))
get net message
endwhile
function readmpdata()
index=0
x=1
repeat
one$=mid$(packet$,x)
while one$<>"*" and x<=len(packet$)
mpdata$(index)=mpdata$(index)+one$
inc x
one$=mid$(packet$,x)
endwhile
inc x
inc index
until x>len(packet$)
endfunction
can some1 help me?
Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb ddr sdram