-
-
Notifications
You must be signed in to change notification settings - Fork 46
Player commands overloading bugs #392
Copy link
Copy link
Open
Labels
area-CommandsIssues related to player/RCON commandsIssues related to player/RCON commandsarea-GMIssues related to SampSharp.GameModeIssues related to SampSharp.GameModebug
Milestone
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
I created a two variants of same command:
A)
/admin skin [targetPlayerId] [skinId]B)
/admin skin [skinId]All parameters are int.
When the server loads in the console log I see both variants are loaded:
In game if I write
/admin skinthe server printsUsage: /admin skin [skinId]If I write
/admin skin 33it printsUsage: /admin skin [targetPlayer] [skinId]If I write
/admin skin 1 33then it works OK with the "A" variant.It is impossible to use the "B" variant.
The commands are declared as suggested here: https://sampsharp.net/player-commands#grouping-commands
I'm not using permissions nor overriding the default commands behavior.
I tried to swap the order of the command declaration, it swapped the order of the command in the server load log, but it was not changed the behavior.