Hello.
I'm Russian boy.
Help me, please.
I using Advanced Vault System by Destro v 1.5
How to get the kills and deaths of player?
I adding the number of death and kills for player:
PHP Code:
public HamKilled(iVictim, iAttacker) {
if(!is_user_connected(iVictim) || !is_user_connected(iAttacker)) {
return HAM_IGNORED
}
if(!iVictim || !iAttacker || iAttacker == iVictim) {
return HAM_IGNORED
}
++g_EPlayer[iAttacker][EPlayerKill]
++g_EPlayer[iVictim][EPlayerDeath]
return HAM_IGNORED
}
Result: its ok.
The numbers are stored.
PHP Code:
public test(id) {
client_print(id, print_chat, "Your kills: %d, deaths: %d", g_EPlayer[id][EPlayerKill], g_EPlayer[id][EPlayerKill])
}
Result: its not ok...
The numbers are equal to zero.
I'm pro eng, xD. I'm sorry. Thanks for help me.