Ok, but if you are using the swedish equivalent to the english string you used before, then you'll have the exact same problem when your program runs on a non-swedish version of windows.
On to your next problem - you are missing the fact that every SEND NET XXXX command you execute is an entire message, so if you send two integers, then your server needs to run GET NET MESSAGE twice, once for each integer it gets. Even then, you may miss a message, or receive them in the wrong order.
IMO, there are only two commands you should use to send messages - SEND MESSAGE STRING and SEND MESSAGE MEMBLOCK - all the others are useless.
Here's an example of sending mouse movement from one DBPro program to another:
sync off
sync rate 30
perform checklist for net connections
Connected = 0
for i = 1 to checklist quantity()
if instr(checklist string$(i), "TCP/IP") > 0
Connected = 1
set net connection i, "127.0.0.1"
exit
endif
next
if Connected = 0 then report error "Unable to locate the TCP/IP connection"
PlayerNo = default net game("MultiplayerMouse", str$(timer()), 2, 1)
LastMouseClick = 0
do
` Determine if a message needs to be send (mouse movement)
if mousemovex() <> 0 or mousemovey() <> 0 or mouseclick() <> LastMouseClick
if mouseclick() = LastMouseClick
` No click, so send a straight mouse movement messages
make memblock 1, 12
write memblock dword 1, 0, 0
write memblock dword 1, 4, mousex()
write memblock dword 1, 8, mousey()
send net message memblock 0, 1, 1
delete memblock 1
else
` Click change, so send a full mouse refresh
make memblock 1, 16
write memblock dword 1, 0, 1
write memblock dword 1, 4, mousex()
write memblock dword 1, 8, mousey()
write memblock dword 1, 12, mouseclick()
send net message memblock 0, 1, 1
delete memblock 1
LastMouseClick = mouseclick()
endif
endif
get net message
while net message exists() <> 0
` Only take action on memblock messages
if net message type() = 4
net message memblock 1
select memblock dword(1, 0)
case 0
` Received a mousemove event
OtherMouseX = memblock dword(1, 4)
OtherMouseY = memblock dword(1, 8)
endcase
case 1
` Received a full mouse refresh
OtherMouseX = memblock dword(1, 4)
OtherMouseY = memblock dword(1, 8)
OtherMouseClick = memblock dword(1, 12)
endcase
endselect
delete memblock 1
endif
get net message
endwhile
cls
text 0, 0, str$(OtherMouseX)
text 0, 15, str$(OtherMouseY)
text 0, 30, str$(OtherMouseClick)
sync
loop
This only uses memblocks, but you could also use strings for the same purpose, or instead use strings for messaging between players and keep memblocks for game data.