View Single Post
Re: Need some help for shield support
Old
  (#46)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Need some help for shield support - 02-11-2004

...and as I see you did not want to bother understanding what these errors meant, so you decided to change the WHOLE function and just blindly copy'n'paste the one from POD-bot 2.6mm. >

That's not the right way to work, dude. EPODbot will go nowhere down this road.

If you want this new FakeClientCommand() function to work, you need to also change the Cmd_Argv, args and argc functions, and you also need to redefine g_argv and get rid of the GlobalLock() and GlobalUnlock(). And if you do that you also need to change ALL FakeClientCommand() calls so as to use formatting strings à la printf. Too bad, eh ?

You'd BETTER put back the old FakeClientCommand() code and not change stuff you don't understand yet. It's just an advice.

hint: data types.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote