Raised This Month: $ Target: $400
 0% 

some logs for plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
slypire
Junior Member
Join Date: May 2013
Old 08-09-2013 , 13:33   some logs for plugin
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
 
 
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!
slypire is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode