Hey, This is my 1st time making a command that carry's a value. Basically how do I get the value from the entered command over to the indexed maxbots?
The foxbot control command works but the command value is always turning up as 0 regardless of the command value entered by console.
My code:
PHP Code:
new id,level,cid
new maxbots[2]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_bot_max", "BotCon")
}
public BotCon(id)
{
read_argv(id, maxbots,2)
server_cmd("bot ^"max_bots %d^"", maxbots)
}
__________________