more code cleanup

This commit is contained in:
2019-11-02 15:06:14 +01:00
parent 4e648e21c4
commit 7842375220
5 changed files with 39 additions and 40 deletions

View File

@@ -57,9 +57,9 @@ public OnMapStart(){
/* ---------------------- Plugin ---------------------- */
public Plugin:myinfo = {
name = "skillbird-query",
name = "skillbird-data-collection,
author = "FAUSheppy",
description = "Backend for trueskill rating system",
description = "Module to collect data for the skillbird framework",
version = "2.0",
url = "https://github.com/FAUSheppy/skillbird-sourcemod"
};

View File

@@ -38,11 +38,11 @@ public Action Timer_QueryTeam(Handle timer, int client){
/* ---------------------- Plugin ---------------------- */
public Plugin:myinfo = {
name = "TrueSkill Query Plugin",
author = "sheppy",
description = "Queries to RatingDB",
name = "skillbird-query",
author = "FAUSheppy",
description = "Module for interaction with the skillbird API",
version = "2.0",
url = "atlantishq.hq"
url = "https://github.com/FAUSheppy/skillbird-sourcemod"
};
public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max){

View File

@@ -18,7 +18,6 @@ public void ClientName(const client,char[] buf,buflen){
ReplaceString(name, DEFAULT_LEN,"|","&");
ReplaceString(name, DEFAULT_LEN,"0x42","0x21");
}
//return name;
}
public void ClientID(int client, char[] buf, int buflen){
@@ -34,7 +33,8 @@ public void ActiveClients(char[] prefix, char[] buf, buflen){
new String:strCliName[DEFAULT_LEN];
ClientID(i, strCliID, DEFAULT_LEN);
ClientName(i, strCliName, DEFAULT_LEN);
Format(str_tmp, ACTIVE_CLIENTS_LENGTH,"%s|%s|%s|%d,", str_tmp, strCliID, strCliName, GetClientTeam(i));
Format(str_tmp, ACTIVE_CLIENTS_LENGTH,
"%s|%s|%s|%d,", str_tmp, strCliID, strCliName, GetClientTeam(i));
}
Format(str_tmp, ACTIVE_CLIENTS_LENGTH, "%s%s", prefix,str_tmp);
}
@@ -61,4 +61,3 @@ public void ClientEventFormat(Handle:event, char[] prefix, char[] buf, buflen){
ClientID(client, strCliID, DEFAULT_LEN);
Format(tmp, 2*DEFAULT_LEN, "%s%s,%s", prefix, strCliID, team);
}