Unknown bug
#1

Last week I come across a very large and troublesome problem.

As seen in the screenshot, the game is something insane. This happens at a connection and after death. Background flashes with very frequent intervals: it is white, then yellow, then black.
P.S. The world boundaries are not.
Код:
enum 	THING_INFO
{
		T_TITLE[ 64 ],
		T_TYPE,
		Float:T_WEIGHT,
		T_PRICE_MONEY,
		T_PRICE_AMMO,
		T_DESCRIP[ 256 ],
		T_MAXIMUM
};

<..>

new 
	result[ 192 ],
	itmp;
if( database_get_data( "things_data", "*", "" ) )
{
	new stmp[ 256 ];
	while( mysql_fetch_row_format( result, "|" ) )
	{
		mysql_get_field( "id", stmp );
		itmp = strval( stmp );
		mysql_get_field( "title", stmp );
		thingData[ itmp ][ T_TITLE ] = stmp;
		mysql_get_field( "type", stmp );
		thingData[ itmp ][ T_TYPE ] = strval( stmp );
		mysql_get_field( "weight", stmp );
		thingData[ itmp ][ T_WEIGHT ] = floatstr( stmp );
		mysql_get_field( "price_of_money", stmp );
		thingData[ itmp ][ T_PRICE_MONEY ] = strval( stmp );
		mysql_get_field( "price_of_ammo", stmp );
		thingData[ itmp ][ T_PRICE_AMMO ] = strval( stmp );
		mysql_get_field( "descrip", stmp );
		thingData[ itmp ][ T_DESCRIP ] = stmp;
		count++;
	}
}
If commenting out this code, all works correctly.

Sorry for my bed English.
Reply


Messages In This Thread
Unknown bug - by Spektr - 20.09.2012, 12:27
Re: Unknown bug - by Beljulji - 20.09.2012, 13:21
Re: Unknown bug - by Spektr - 20.09.2012, 16:19
Re: Unknown bug - by MarTaTa - 21.09.2012, 06:47
Re: Unknown bug - by Spektr - 24.09.2012, 13:50

Forum Jump:


Users browsing this thread: 2 Guest(s)