get_stats now looks like this:

native get_stats(index,stats[8],bodyhits[8],name[],len,authid[],authidlen=0);
(authid + authidlen are new)
+ fixes
This commit is contained in:
Johnny Bergström
2005-01-12 01:24:40 +00:00
parent a58ab24b0c
commit 8e58484fc5
3 changed files with 13 additions and 7 deletions

View File

@ -188,7 +188,7 @@ static cell AMX_NATIVE_CALL get_user_stats2(AMX *amx, cell *params) /* 3 param *
return 0;
}
static cell AMX_NATIVE_CALL get_stats(AMX *amx, cell *params) /* 3 param */
static cell AMX_NATIVE_CALL get_stats(AMX *amx, cell *params) /* 7 param */
{
int index = params[1] + 1;
@ -208,6 +208,8 @@ static cell AMX_NATIVE_CALL get_stats(AMX *amx, cell *params) /* 3 param */
cpStats[7] = (*a).getPosition();
MF_SetAmxString(amx,params[4],(*a).getName(),params[5]);
if (params[7] > 0)
MF_SetAmxString(amx,params[6],(*a).getUnique(),params[7]);
for(int i = 1; i < 8; ++i)
cpBodyHits[i] = (*a).bodyHits[i];
return --a ? index : 0;