mySQL_get_Field
#1

Hi,

Why when i use mysql_get_Field, my server crashed?
Reply
#2

Can you show us the code around "mysql_get_Field()"
Reply
#3

Code:
new stringgaasss[ 200 ];
new STRINGLOADDDING[ 300];
format(  stringgaasss, 200,"SELECT * FROM players WHERE Name='%s'", GetPlayerNameEx[ playerid ] );
	    mysql_query( stringgaasss );
	    mysql_store_result( );
	    new REALPLAYERNAME[ 25 ];
new PLAYERXP[ 15 ];
	    if( mysql_num_rows( ) )
	    {
		    if( mysql_fetch_row_format( STRINGLOADDDING ) )
			{
			    mysql_get_field("Name",REALPLAYERNAME);
			    mysql_get_field("XP",PLAYERXP);
			}
new blablabla[ 200 ];
			format( blablabla, 128,"%s %d", REALPLAYERNAME, strval( PLAYERXP ) );
			SendClientMessage( playerid, -1,blablabla);
		}
		mysql_free_result( );
I try with sscanf, it work. But i want to do with mysql_get_field, or with same doing function. But the problem, why server crashed, why this function what problems is?
Reply
#4

UP thread,
Reply
#5

Happens to me too.
Did you fixed this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)