Hello, kann jemand bitte überprüfen, ob das funktioniert ?
Visual basic:
C
Dim saljem As New Sockets.UdpClient(7775)
saljem.Connect("127.0.0.1", 7775)
Dim sendbytes() As Byte = ASCII.GetBytes(TextBox1.Text)
Pawn:
C
public OnGameModeInit()
{
if(udpConnect("127.0.0.1", 7775))
{
printf("The server has been connected to ucp.");
}
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public onSocketRemoteConnect(Socket:id, remote_client[], remote_clientid)
{
print("Neu connection");
return 1;
}
stock udpConnect(ip[], port)
{
Launcher = socket_create(UDP);
return socket_connect(Launcher, ip, port);
}
Alles anzeigen
das funktioniert nicht.
No debug at connect