-
-
Notifications
You must be signed in to change notification settings - Fork 46
Closed
Labels
area-CommandsIssues related to player/RCON commandsIssues related to player/RCON commandsarea-GMIssues related to SampSharp.GameModeIssues related to SampSharp.GameModebug
Milestone
Description
Command overloading used to work fine, but after updating to the latest SampSharp version, only the first version of a command is being recognized.
The following code:
[Command("rob", "rb")]
private void RobCommand(Player victim) // Player is a subclass of BasePlayer
{
// omitted
}
[Command("rob", "rb")]
private void RobCommand()
{
// omitted
}
Outputs:
Usage: /rob [victim]
If the players types /rob
without specifying the victim parameter.
Metadata
Metadata
Assignees
Labels
area-CommandsIssues related to player/RCON commandsIssues related to player/RCON commandsarea-GMIssues related to SampSharp.GameModeIssues related to SampSharp.GameModebug