When i try to compile a ZPA 1.6.1 plugin i made using the ready-to-use examples in "examples" folder, i get the following error:
error 017: undefined symbol "get_user_maxhealth"
This is the code segment the error comes from:
Code:
public zp_player_killed(victim, killer, weapon)
{
// Check if it is our game mode
if (zp_get_current_mode() == g_gameid)
{
// Check if the killer is a human and the victim is a zombie
if (!zp_get_user_zombie(killer) && zp_get_user_zombie(victim))
{
// Set the killer's health to full
set_user_health(killer, get_user_maxhealth(killer))
}
}
Can someone explain to me how to fix the error?