PDA

View Full Version : Stefan: HERE'S WHY rbds command doesn't work


Pierre-Marie Baty
01-01-2004, 21:07
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 :P :D

stefanhendriks
01-01-2004, 21:10
i already said this to ya! :D rofl i already released a new version.

For the moment i uncommented the reg part for METAMOD. I will make a neater fix later on , so i can completely use METAMOD's structure.

Pierre-Marie Baty
01-01-2004, 21:22
om** you're right, ah well it's 1st january, night was tough, I'm dizzy, you know what it is ;)

MEH PMB, MEH !!! :D