mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 10:53:22 +00:00
ftt: merge meow into honk
This commit is contained in:
parent
8e1dc263ad
commit
509e70b235
4 changed files with 17 additions and 11 deletions
|
@ -353,8 +353,10 @@ void DisableTroll(int client, const char[] troll) {
|
|||
}
|
||||
}
|
||||
|
||||
void SetCategory(const char[] newCat) {
|
||||
categoryID = categories.PushString(newCat);
|
||||
public void SetCategory(const char[] newCat) {
|
||||
categoryID = categories.FindString(newCat);
|
||||
if(categoryID == -1)
|
||||
categoryID = categories.PushString(newCat);
|
||||
}
|
||||
void GetCategory(int category, char[] buffer, int size) {
|
||||
categories.GetString(category, buffer, size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue