19.01.2014, 15:30
Hi,
Why when i use mysql_get_Field, my server crashed?
Why when i use mysql_get_Field, my server crashed?
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( );