HI all. I have army_ranks+math games plugin. In math games is random prizes and for example, I have one prize, that gives 4 XP to player...I do it, BUT when I change the map, XP doesn't save
PHP Code:
case 6:
{
cs_set_user_money(id, cs_get_user_money(id) + WinMoney)
ColorChat(0,NORMAL,"^4Mogebuli ^3%s ^1| ^4Moigo: ^3%d$ ^1+ ^3 4 Gamocdileba ^1| ^4Pasuxi: ^3%d",szName,WinMoney,MAnswer, get_pcvar_num(gBombPlantXp))
set_task(0.1, "MathXp", id)
}
and
PHP Code:
public MathXp(id)
{
UserData[id][gExp] += get_pcvar_num(gBombPlantXp);
}
This is only XP prize code...
Also I've set giving XP with gBombPlantXP (I didn't want to add new cvar, something like gMathGamesXP...). And this is problem (Don't saving WINNER's XP). And please help me with this, just fix saving code of Winner's XP. Many thanks.