Raised This Month: $ Target: $400
 0% 

Run time error 10: native error (native "set_user_health")


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Wuu
Member
Join Date: Apr 2008
Old 06-23-2010 , 05:03   Run time error 10: native error (native "set_user_health")
Reply With Quote #1

Code:
L 06/23/2010 - 03:06:38: [FUN] Invalid player 3
L 06/23/2010 - 03:06:38: [AMXX] Displaying debug trace (plugin "modern_boost.amxx")
L 06/23/2010 - 03:06:38: [AMXX] Run time error 10: native error (native "set_user_health")
L 06/23/2010 - 03:06:38: [AMXX]    [0] modern_boost.sma::eSpawn (line 443)
Code:
public plugin_init() {
...
    RegisterHam(Ham_Spawn, "player", "eSpawn", 1)
...
Code:
public eSpawn(id)
{
    if(is_user_alive(id))
    set_exp(id,0)
    new hp = get_user_health(id)
    new ac = get_user_armor(id)
    hp +=((userLv[id]*2)-2)
    ac +=((userLv[id]*2)-2)
    if (hp > 255) {
        hp = 255
    }
    if (ac > 255) {
        ac = 255
    }
    set_user_health(id,hp) //Line 443
    set_user_armor(id,ac)
}
Wuu 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 14:47.


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