For most of Thursday night at Toyota Center, the Rockets could not make 3-pointers, but somehow they would find a way. Dwight Howard could not stay on the court, but the Rockets found an answer. James Harden could not make shots, but he found another means to score and score.

The Rockets could do little right. They trailed by as many as 13 points. Heading into the fourth quarter, Howard was on the bench with foul trouble and a stiff back. The Memphis Grizzlies were bullying the Rockets inside. Jeremy Lin was off. Aaron Brooks limped away with a sprained ankle.

Yet the Rockets kept searching until they found a way. Howard could not stay on the floor, so Donatas Motiejunas, a player who normally can’t get on the floor, filled the void. Lin could not get going, so he made a few reverses until he found his shot. Most of all, when Harden could not make shots, he made free throws, as many as any Rockets player ever has in a game, until the Rockets rallied through their second fourth-quarter rush past the Grizzlies in a month 100-92 in their most inexplicable win of the season.

Harden’s night put him in the record book for tying Sleepy Floyd’s franchise mark of 22 free throws and for the most points in a game with just two or fewer field goals.

“Just being aggressive, being aggressive,” Harden said. “I couldn’t make a shot. I just tried to get to the rim.

“Yeah, I would have liked to break it. I don’t like missing free throws at all. They’re free. I missed three of them, but I’m just happy we won the game. It’s more growth than anything. Big win last night on the road. Tonight was more of a grind-out game. We didn’t have it going, but we found a way to fight and come out with the victory. That’s all that matters.”