Spread construction adhesive over the face of a 2-by-4. Place the 2-by-4 against the part of the truss that is broken so the break is at the center of the 2-by-4 along the length of the truss. Secure the 2-by-4 by driving a 4-inch-long screw into each end, just far enough to hold the 2-by-4 in place but not so far that the end of the screw comes out the other side of the truss.
Put construction adhesive onto the face of another 2-by-4. Place this 2-by-4 on the opposite side of the broken truss so the break is sandwiched between the two 2-by-4s. Secure this 2-by-4 by driving 4-inch-long screws through it, through the truss and into the opposite 2-by-4.
Drive the first two screws that you put in all the way in so they go through the truss and into the opposite 2-by-4.
Add more 4-inch-long screws along the length of the 2-by-4s. The more screws you add, the stronger the repair will be.