Hi guys, I'm new in plugins world and everything like that, I have using this plugin but there is some logs from him, can anybody give me idea how to fix this, its very simple plugin.
PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#define PLUGIN "Spawn Heal"
#define VERSION "1.0"
#define AUTHOR "RedRobster"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn,"player","Spawn_Hook",1)
}
public Spawn_Hook(id)
{
if(is_user_alive(id))
set_task(1.0,"Heal_User",id,_,_,"a",5)
}
public Heal_User(id)
{
set_user_health(id,100)
}
And log is
[AMXX] Run time error 10: native error (native "set_user_health")
Thanks a lot for help guys!