View Single Post
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 03-02-2014 , 12:17   Re: Module: CSX Extended (v1.1)
Reply With Quote #14

just fixed your code guy !
Code:
static cell AMX_NATIVE_CALL get_user_score(AMX *amx, cell *params)  /*3 param */ {     int index = params[1];     CHECK_PLAYER(index);     CPlayer* pPlayer = GET_PLAYER_POINTER_I(index);     params[1] = pPlayer->pEdict->v.frags;     params[2] = *((int *)pPlayer->pEdict->pvPrivateData + OFFSET_CSDEATHS);     return 1; }

Code:
static cell AMX_NATIVE_CALL set_user_score(AMX *amx, cell *params)  /*3 param */ {     int index = params[1];     CHECK_PLAYER(index);     CPlayer* pPlayer = GET_PLAYER_POINTER_I(index);     pPlayer->restartStats();     pPlayer->setScore(params[1],params[2]);     return 1; }
__________________
QQ:116268742

Last edited by K.K.Lv; 03-02-2014 at 12:20.
K.K.Lv is offline
Send a message via MSN to K.K.Lv