25.03.2012, 11:12
(
Последний раз редактировалось Rock1; 25.03.2012 в 21:01.
)
Solved!
I was stupid, it was simple to do it.
I was stupid, it was simple to do it.
format( r_Query, sizeof( r_Query ), "SELECT * FROM `Points` WHERE `Nume` = '%s'", GetName( playerid ));
Rezultat = db_query( DriftPoints, r_Query );
format( r_Query, sizeof( r_Query ), "SELECT `DriftScore` FROM `Points` WHERE `Nume` = '%s'", GetName( playerid ) ); Rezultat = db_query( DriftPoints, r_Query ); //-------------------------------------------------------------------------------------- db_query( DriftPoints, "CREATE TABLE IF NOT EXISTS `Points` (`Nume`, `DriftScore`)" ); //Why you free the result if you don't have one? //-------------------------------------------------------------------------------------- format( _Query, sizeof( _Query ), "UPDATE `Points` SET `DriftScore` = `%d` WHERE `Nume` = '%s'", value, GetName( playerid ) ); db_query( DriftPoints, _Query );