Raised This Month: $ Target: $400
 0% 

(native "set_user_health") error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OM NOM NOM NOM
Member
Join Date: Jan 2010
Old 02-05-2010 , 01:00   (native "set_user_health") error
Reply With Quote #1

Everything seems to work just fine, yet my logs say otherwise.

L 01/11/2010 - 12:23:58: [AMXX] Run time error 10 (plugin "om33h.amxx") (native "set_user_health") - debug not enabled!

What did I miss?

PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#define Plugin "om33h"
#define Version "1.2"
#define Author "om"
#define ADMIN_LEVEL ADMIN_LEVEL_A
new cvarhp
public plugin_init()
{
register_plugin(PluginVersionAuthor)
RegisterHam(Ham_Spawn"player""client_spawn"1)
cvar register_cvar("hp_enable""1")
hp register_cvar("hp_extra""100")
}
public 
client_spawn(id)
{
if(
get_pcvar_num(cvar) < 1)
return 
PLUGIN_CONTINUE
if(get_user_flags(id) & ADMIN_LEVEL)
set_user_health(idget_user_health(id) + get_pcvar_num(hp))
return 
PLUGIN_CONTINUE

OM NOM NOM NOM is offline
 


Thread Tools
Display Modes

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 07:19.


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