You need to start looking at existing plugins and see how things are done. The funcwiki is great but it probably confused you on read_argv() because the "id" shown there is not the "id" of a player at all. It is the index of the argument that you want to retrieve.
PHP Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("Plugin", "0.1", "Author")
register_concmd("amx_bot_max", "BotCon")
}
public BotCon(id)
{
new szMaxbots[3]
read_argv(1, szMaxbots, charsmax(szMaxbots))
new iMaxbots = str_to_num(szMaxbots)
server_cmd("bot ^"max_bots %d^"", iMaxbots)
}
@Kramesa: You were functionally close but but I would rather use read_argv() for clarity. To fix your code you would need to change the %d to %s (I think).
__________________