The dual-functional radar-communication (DFRC) integrated system presents an ideal solution to address the challenge of spectrum resource congestion in future networks. This paper explores an adaptive power allocation technique based on beamforming to enhance the word error probability (WEP) performance of the DFRC system. Initially, a joint optimization model is developed to minimize the WEP while adhering to constraints on radar signal-to-interference-noise ratio (SINR), peak-to-average-power ratio, sidelobe level, and total transmit power. This model incorporates dual-function transmit beam, radar, and communication receive beam patterns. Subsequently, the proposed subproblem convex relaxation alternating update (SCRAU) algorithm is introduced to achieve a locally optimal solution for multi-carrier power allocation. This algorithm decomposes the original non-convex optimization problem into three sub-problems with lower complexity and iteratively optimizes them. Simulation experiments validate that the SCRAU algorithm can simultaneously fulfill radar and communication functions. The SCRAU algorithm demonstrates superior WEP performance compared to current advanced algorithms.