26.06.2011, 19:04
pawn Код:
new
Query[ 56 ]
;
format ( Query, 51, "SELECT * FROM `playersdb` ORDER BY `Job` = '%d'", pData[ playerid ][ pJob ] );
mysql_query ( Query );
mysql_store_result( );
SendClientMessage ( playerid, -1, mysql_num_rows( ) );
mysql_free_result ( );
format ( Query, 56, "SELECT `Name` FROM `playersdb` ORDER BY `Job` = '%d'", pData[ playerid ][ pJob ] );
mysql_query ( Query );
mysql_store_result( );
SendClientMessage ( playerid, Query );
mysql_free_result ( );