I went to the line 2232 of "PokeBattle_Battle" and I put the script def pbSendOut(index,pokemon)
pbSetSeen(pokemon)
@peer.pbOnEnteringBattle(self,pokemon)
if pbIsOpposing?(index)
@scene.pbTrainerSendOut(index,pokemon)
if $game_switches[112] and pbPokemonCount(@party2)==1
pbBGMPlay("GymLastBGM",100,100)
end
Then I put a song named "GymLastBGM" and when I tested the game, it said me the error.