You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/6.plugins/5.s2sdk/4.guides/1.console-commands.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Now we've successfully implemented a command -- though it doesn't do anything ye
24
24
In fact, it will say "Unknown command" if you use it! This is because you're not returning `ResultType.Handled` in your callback.
25
25
Since you haven't, Server believes you didn't want the Source2 Engine to know the command was registered, and it handles it so.
26
26
The reason Server expects your function to return `ResultType.Handled` is because of the Result tag you put in your function's prototype.
27
-
The Result tag specifies that Command_MySlap must return one of four things. See the Result enumeration in the API to learn more about these return types and when to use them.
27
+
The Result tag specifies that `Command_MySlap` must return one of four things. See the Result enumeration in the API to learn more about these return types and when to use them.
0 commit comments