fix errors

ExtraCommands: add sm_setmvp
This commit is contained in:
BotoX
2017-08-12 15:07:10 +02:00
parent 9c4735659c
commit 68387329f2
6 changed files with 67 additions and 3 deletions
+3 -1
View File
@@ -235,7 +235,9 @@ public MRESReturn AcceptInput(int pThis, Handle hReturn, Handle hParams)
if(DHookIsNullParam(hParams, 2))
return MRES_Ignored;
int client = DHookGetParam(hParams, 2);
int client = EntRefToEntIndex(DHookGetParam(hParams, 2));
if(client < 1 || client > MAXPLAYERS)
return MRES_Ignored;
char szInputName[32];
DHookGetParamString(hParams, 1, szInputName, sizeof(szInputName));