[pawn] new DBResult:Result2, Field[ 50 ]; format( Query2, 256, "SELECT `Key` FROM `KSDatabase` WHERE `Nume` = '%s'", plname( playerid ) ); Result2 = db_query( Database2, Query2 ); if ( db_num_rows( Result2 ) ) { db_get_field_assoc( Result2, "KillingSpree", Field, sizeof( Field ) ); KillingSpree{ playerid } = strval( Field ); db_get_field_assoc( Result2, "BestKillingSpree", Field, sizeof( Field ) ); bKillingSpree{ playerid } = strval( Field ); format( stringgg, 128, "You are in {FF9900}%d {FFFFFF}Killing Spree!", KillingSpree{ playerid } ); SendClientMessage( playerid, 0xFFFFFFFF, stringgg ); format( stringgg, 128, "Your best killing spree is: {FF9900}%d{FFFFFF}.", bKillingSpree{ playerid } ); SendClientMessage( playerid, 0xFFFFFFFF, stringgg ); } else { format( Query2, 256, "INSERT INTO `KSDatabase` VALUES(NULL,'%s','%d','%d')", plname( playerid ), 0, 0 ); db_free_result( db_query( Database2, Query2 ) ); KillingSpree{ playerid } = 0; bKillingSpree{ playerid } = 0; } db_free_result( Result2 );[/pawn] Result2 faci Result. Query2 faci Query . Pentru a functiona bine xD