Raised This Month: $ Target: $400
 0% 

native errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 01-01-2010 , 04:31   native errors
Reply With Quote #1

I'm getting this in the logs.txt

Quote:
L 01/01/2010 - 11:29:08: Start of error session.
L 01/01/2010 - 11:29:08: Info (map "de_dust") (file "addons/amxmodx/logs/error_20100101.log")
L 01/01/2010 - 11:29:08: [FUN] Invalid player 1
L 01/01/2010 - 11:29:08: [AMXX] Displaying debug trace (plugin "zombies_attack_xp.amxx")
L 01/01/2010 - 11:29:08: [AMXX] Run time error 10: native error (native "strip_user_weapons")
L 01/01/2010 - 11:29:08: [AMXX] [0] zombies_attack_xp.sma::StripPlayerWeapons (line 757)
L 01/01/2010 - 11:29:08: [AMXX] [1] zombies_attack_xp.sma::fw_PlayerSpawn (line 699)
L 01/01/2010 - 11:29:08: [FUN] Invalid player 1
L 01/01/2010 - 11:29:08: [AMXX] Displaying debug trace (plugin "zombies_attack_xp.amxx")
L 01/01/2010 - 11:29:08: [AMXX] Run time error 10: native error (native "set_user_health")
L 01/01/2010 - 11:29:08: [AMXX] [0] zombies_attack_xp.sma:layerSpawn_Upgrades (line 70
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-01-2010 , 08:19   Re: native errors
Reply With Quote #2

It means that player is not connected when the native is executed. You have to add a check to make sure player is at least connected to the server. ( is_user_alive() or is_user_connected() depending your need )
__________________
Arkshine is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 01-01-2010 , 10:40   Re: native errors
Reply With Quote #3

thx
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
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 04:09.


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