View Single Post
Author Message
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 11-30-2014 , 19:59   bad load - linux
Reply With Quote #1

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!!!
Attached Files
File Type: zip sockets2.zip (37.7 KB, 72 views)

Last edited by OvidiuS; 11-30-2014 at 21:40.
OvidiuS is offline
Send a message via Skype™ to OvidiuS