mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-05-05 03:19:33 +03:00
Getting an ID only with more than three arguments
This commit is contained in:
parent
9e31230368
commit
5f66e7f190
@ -65,14 +65,13 @@ void amx_command()
|
|||||||
}
|
}
|
||||||
else if (!strcmp(cmd, "plugin"))
|
else if (!strcmp(cmd, "plugin"))
|
||||||
{
|
{
|
||||||
auto id = atoi(CMD_ARGV(2));
|
|
||||||
|
|
||||||
if (CMD_ARGC() < 3)
|
if (CMD_ARGC() < 3)
|
||||||
{
|
{
|
||||||
print_srvconsole("Usage: amxx plugin < plugin_id >\nFor a list of plugins, use the \"amxx plugins\" command\n");
|
print_srvconsole("Usage: amxx plugin < plugin_id >\nFor a list of plugins, use the \"amxx plugins\" command\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
auto id = atoi(CMD_ARGV(2));
|
||||||
auto plugin = g_plugins.findPlugin(id);
|
auto plugin = g_plugins.findPlugin(id);
|
||||||
|
|
||||||
if (plugin && plugin->isValid())
|
if (plugin && plugin->isValid())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user