View Single Post
Stefan: HERE'S WHY rbds command doesn't work
Old
  (#1)
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 Stefan: HERE'S WHY rbds command doesn't work - 01-01-2004

It's a screenshot on the realbot website that made me figure out what your problem is, Stefan.

The problem is, that you can't register a SERVER COMMAND "rbds" and a CVAR "rbds" in a row if both the server command and the CVAR have the same name.

The first thing that is registered is the server command, it works okay, but then when the code comes to register the CVAR, it refuses to do so and prints that error message:
CVAR_REGISTER: rbds: is a command.

This is also why you couldn't seem to get the server command workign with your old RealBot... because you were registering the server command AFTER the CVAR... it's the contrary in the plugin

To make things work like before, change the name of the server command from "rbds" to "realbot" or "rb" (or change the name of the CVAR), and ensure both have DIFFERENT names.

[...]

np, you're welcome



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

Last edited by Pierre-Marie Baty; 01-01-2004 at 20:08..
  
Reply With Quote