mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
reduced size to 32 blablabla yes the usual things sql error nairda
This commit is contained in:
parent
6ccecd8014
commit
b6ca23d9f0
@ -26,6 +26,7 @@
|
|||||||
#define SHAVIT_VERSION "2.2.0"
|
#define SHAVIT_VERSION "2.2.0"
|
||||||
#define STYLE_LIMIT 256
|
#define STYLE_LIMIT 256
|
||||||
#define MAX_ZONES 64
|
#define MAX_ZONES 64
|
||||||
|
#define MAX_NAME_LENGTH_SQL 32
|
||||||
|
|
||||||
// HUD
|
// HUD
|
||||||
#define HUD_NONE (0)
|
#define HUD_NONE (0)
|
||||||
|
|||||||
@ -1400,9 +1400,9 @@ public void OnClientPutInServer(int client)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
char[] sName = new char[MAX_NAME_LENGTH];
|
char[] sName = new char[MAX_NAME_LENGTH_SQL];
|
||||||
GetClientName(client, sName, MAX_NAME_LENGTH);
|
GetClientName(client, sName, MAX_NAME_LENGTH_SQL);
|
||||||
ReplaceString(sName, MAX_NAME_LENGTH, "#", "?"); // to avoid this: https://user-images.githubusercontent.com/3672466/28637962-0d324952-724c-11e7-8b27-15ff021f0a59.png
|
ReplaceString(sName, MAX_NAME_LENGTH_SQL, "#", "?"); // to avoid this: https://user-images.githubusercontent.com/3672466/28637962-0d324952-724c-11e7-8b27-15ff021f0a59.png
|
||||||
|
|
||||||
int iLength = ((strlen(sName) * 2) + 1);
|
int iLength = ((strlen(sName) * 2) + 1);
|
||||||
char[] sEscapedName = new char[iLength];
|
char[] sEscapedName = new char[iLength];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user