When someone dies their kills/deaths is stored in a vault.
PHP Code:
public client_death(killer, victim, wpnindex, hitplace, TK)
{
new szKills[4];
new szDeaths[4];
new szKey[40];
new szKeyTwo[40];
formatex(szKey, 39, "%sKILLS", g_szAuthID[killer]);
formatex(szKeyTwo, 39, "%sDEATHS", g_szAuthID[victim]);
formatex(szKills, 3, "%d", get_user_frags(killer));
formatex(szDeaths, 3, "%d", get_user_deaths(victim));
nvault_set(g_Vault, szKey, szKills);
nvault_set(g_Vault, szKeyTwo, szDeaths);
}
I get the values this way:
PHP Code:
new szKey[40];
formatex(szKey, 39, "%sKILLS", g_szAuthID[id]);
new iKills = nvault_get(g_Vault, szKey);
PHP Code:
new szKey[40];
formatex(szKey, 39, "%sDEATHS", g_szAuthID[id]);
new iDeaths = nvault_get(g_Vault, szKey);
How should i do to get both Deaths and Kills in the same function as seperate variables?