Obviously, trainers usually work on your system memory and won't affect other one's computer, when data between computers can't match each other, it will cause synch problem.
And I don't suggest to cheat in mutliplayer. If you really want to overwhelm someone with troops, you'd better go for AIs.