I'm trying to compile this module, and every time i compile it, i get bad load.
There is no error while compiling.
Can someone check module? I have no idea why do i get bad load.
I assume that compiler is problem, but i'm not sure.
ps. Error is somewhere in socket_change.
As soon as i comment that native, module is loaded.
Still i have no idea what's the problem. Any help?
pss.
These 2 lines are problem:
Code:
static cell AMX_NATIVE_CALL socket_change( AMX *amx, cell *params )
{
int socket = params[ 1 ];
struct timeval tv;
fd_set rfds;
FD_ZERO( &rfds );
FD_SET( socket, &rfds );
tv.tv_sec = 0;
tv.tv_usec = 0;
return ( select( socket + 1, &rfds, NULL, NULL, &tv ) > 0 );
}
Module is loaded when i comment them. Help!!!