Pages: [1]   Go Down
  Print  
Author Topic: Errors  (Read 246 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BO, SoF, UrT
Posts: 13
Offline Offline
WWW
« on: August 27, 2011, 08:35:59 AM »

Hi all,

How are you all? I hope you well.

I just been reading around on your site.
Found a few errors in the code the way it is illustrated:

http://forum.bigbrotherbot.net/downloads/?sa=view;down=162

I amended the code, see below:


g_svcmds.c

ADD:
Code:
/*
=================
BB_Tell_f (B3 Private Messaging)
=================
*/  
void BB_Tell_f( gentity_t *ent, int clientNum )  
{  
char            buffer[MAX_TOKEN_CHARS];  
int             id;  
gentity_t       *id_ent;  
      
trap_Argv( 1, buffer, sizeof( buffer ) );  
id = atoi( buffer );  
if ( !CheckID( ent, id ) ) {  
return;  
}  
id_ent = g_entities + id;  
trap_SendServerCommand( id_ent-g_entities, va("chat -1 \"%s\n\"", ConcatArgs(2) ) );  
}  

ADD to the "qboolean ConsoleCommand" function:  
Code:
if (Q_stricmp (cmd, "tell") == 0)  
{  
BB_Tell_f( 0, 0 );  
return qtrue;  
}  


g_local.h

ADD:
Code:
void BB_Tell_f( gentity_t *ent, int clientNum );  

Sorry about this. I just try to help.
See you around.
« Last Edit: August 27, 2011, 08:40:08 AM by ~cGs*AQUARIUS » Logged


[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #1 on: August 27, 2011, 09:33:21 AM »

Thanks, missed a few [ code ] tags there.
Should be okay now.
Logged

Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BO, SoF, UrT
Posts: 13
Offline Offline
WWW
« Reply #2 on: September 02, 2011, 03:32:44 PM »

Nice one. Thanks.

I also found a few issues in the "README.txt".

Refering to folders within the compressed file that do not exist;
WAS: game/sof2mp.gvm
NOW: vm/sof2mp.qvm

And various other grammer/spelling issues.

See the attachment for the new ROCmod_B3.zip.
(NOTE: I added an underscore there between "ROCmod" and "B3". Your download has not got that.)

I should have done this long time ago. But at least this topic has been online for some time now!
Sorry for the inconvenience.
« Last Edit: September 02, 2011, 03:42:23 PM by ~cGs*AQUARIUS » Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal