Что правильнее юзать?
Или с bool:
C++:
static AddExp
AddExp = (hit != HIT_HEAD) ? get_pcvar_num(cvar[CVAR_ADD_EXP]) : get_pcvar_num(cvar[CVAR_ADD_HS_EXP])
g_arrData[killer][exp] += AddExp
C++:
static AddExp, bool:headshot
headshot = (hit != HIT_HEAD) ? true : false
AddExp = headshot ? get_pcvar_num(cvar[CVAR_ADD_EXP]) : get_pcvar_num(cvar[CVAR_ADD_HS_EXP])
g_arrData[killer][exp] += AddExp