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
textptr[0] = '!';
G_LogPrintf( "hidden;%s;%d;%s;%s\n", SV_GetGuid(ent->s.number), ent->s.number, name, ++textptr );
Scr_PlayerCmd(ent, textptr);
Com_Printf( "Hidden CMD Invoked by: %s Message: %s \n", name, textptr);
//Scr_PlayerSay(ent, mode, textptr -1);
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 .