13.03.2013, 17:59
Quote:
How to use mysql_insert_it( ); on R7 or above ?
I have this code: Код:
format( gsQuery, 512, "INSERT INTO `Clans` VALUES(0,'%s','%s','1','%.3f','%.3f','%.3f','%.3f','0','0','0','0','0','0','0','0','0','0')", clanname, PlayerName( playerid ), c_Pos[ 0 ], c_Pos[ 1 ], c_Pos[ 2 ], c_Pos[ 3 ] ); mysql_function_query( g_Handle, gsQuery, false, "", "" ); PlayerInfo[ playerid ][ ID ] = mysql_insert_id( g_Handle ); printf( "ClanID: %d", PlayerInfo[ playerid ][ ID ] ); |