18.12.2014, 11:32
I have problem with socket_listen.
Код:
#include <a_samp> #include <socket> new Socket:sock; public OnFilterScriptInit() { sock = socket_create(UDP); if(is_socket_valid(sock)) { socket_connect(sock,"127.0.0.1",7778); socket_bind(sock, "127.0.0.1"); socket_listen(sock,7778); // socket_listen(): Socket has failed to bind. (IP 127.0.0.1, Port 7778) } return 1; }