Raised This Month: $ Target: $400
 0% 

Native Errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cronck
Member
Join Date: Apr 2005
Old 05-01-2005 , 04:40   Native Errors
Reply With Quote #1

I get this message in-game.

L 05/01/2005 - 1088: [AMXX] Native error in "set_user_health" on line 736 (file "amm.sma").
L 05/01/2005 - 1088: [FUN] Player out of range (101)
L 05/01/2005 - 1088: [AMXX] Native error in "client_print" on line 737 (file "amm.sma

Here's the code:
Code:
public Heal_Hold(id){     if (!User_Upgrades[id][UPGRADE_HEALING]){         client_print(id,print_chat,"[%s] You haven't upgraded this skill yet", MOD)         return PLUGIN_HANDLED     }         if (!is_user_alive(id)){         return PLUGIN_HANDLED     }         new target , body     get_user_aiming ( id, target, body, 9999 )         if (!target){         return PLUGIN_HANDLED     }     if (get_user_team(id) != get_user_team(target)){         return PLUGIN_HANDLED     }     if (!is_user_alive(target)){         return PLUGIN_HANDLED     }         new TaskId = TASK_HEAL + id;     new parmHeal[2]     parmHeal[0] = id     parmHeal[1] = target     set_task( 0.1, "Heal_Process", TaskId, parmHeal, 2, "b" )     client_print(id,print_console,"[%s] Healing Process started! ^n",MOD)     return PLUGIN_CONTINUE } public Heal_Process(id, target){     new tHealth = get_user_health(target) + 1     set_user_health(target, tHealth) // Line 736     client_print(id,print_console,"[%s] Target Id: %i ^n",MOD,target) // Line 737         return PLUGIN_CONTINUE }
__________________
No public plugins yet...
Cronck is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 05-01-2005 , 11:34  
Reply With Quote #2

Read the other thread you posted, you have the same problem here..
xeroblood is offline
Send a message via MSN to xeroblood
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 05-01-2005 , 12:17  
Reply With Quote #3

get_user_aiming will tell you any entity you hit, not just player entities. Do a is_user_connected before doing any actions on the entity.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



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 20:38.


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