DarkSun

Dont Show Chats With a Prefix

Recommended Posts

Hello
I trying to recompile Cod4x 1.7a to dont show In game chat with a prefix.
I use " ! " as prefix in my GSManager.
I searched and found this source in gsmanager.de forum
  1. textptr[0] = '!';
  2. G_LogPrintf( "hidden;%s;%d;%s;%s\n", SV_GetGuid(ent->s.number), ent->s.number, name, ++textptr );
  3. Scr_PlayerCmd(ent, textptr);
  4. Com_Printf( "Hidden CMD Invoked by: %s Message: %s \n", name, textptr);
  5. //Scr_PlayerSay(ent, mode, textptr -1);
  6. return;

I used it but It shows me this error:

Compiling NASM...
Linking...
bin/g_sv_cmds.o: In function `G_Say':
E:\COD4XEDIT\CoD4X17a-WonderlandX-master\bin/../src/g_sv_cmds.c:450: undefined reference to `Scr_PlayerCmd'
collect2.exe: error: ld returned 1 exit status
Cleaning up...
Creating plugin export lib...
stat: No such file or directory
pexports: cod4x17a_dedrun.exe: could not load PE image
The system cannot find the file specified.
dlltool: Syntax error in def file cod4x17a_dedrun.def:0
The system cannot find the file specified.
Done!

 

Mirko911 ( Moderator of GSManger.de ) said :

I made many changes in my forked version. Maybe I haven't pulled the latest version and the Scr_PlayerCmd function got removed?

 

Is it true ? Scr_playercmd function got removed ?

So what can I do ?

Answer and help me please . :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now