.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
executing server command.
Old
  (#1)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default executing server command. - 21-04-2004

I'm trying to make a dll to run a server command when the server changes map (in ServerActivate like PMB said so)
but it keeps giving me:
Quote:
Error, Bad server command exec cstrike/de_aztec.cfg
and Here is the code.
Code:
void ServerActivate( edict_t *pEdictList, int edictCount, int clientMax )
{
   char server_cmd[256];
   sprintf (server_cmd, "exec cstrike/%s.cfg", STRING (gpGlobals->mapname));
   SERVER_COMMAND (server_cmd);
   (*other_gFunctionTable.pfnServerActivate)(pEdictList, edictCount, clientMax);
}
I've been trying different things but I don't know much
so anyone know how to do this the right way?
  
Reply With Quote
Re: executing server command.
Old
  (#2)
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: executing server command. - 21-04-2004

You forgot the "\n" at the trailing end of the server command...



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
Re: executing server command.
Old
  (#3)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: executing server command. - 21-04-2004

Thanks I'll try it as soon as I get on windows..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com