AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   native errors (https://forums.alliedmods.net/showthread.php?t=113995)

~Ice*shOt 01-01-2010 04:31

native errors
 
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::PlayerSpawn_Upgrades (line 708)

Arkshine 01-01-2010 08:19

Re: native errors
 
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 )

~Ice*shOt 01-01-2010 10:40

Re: native errors
 
thx


All times are GMT -4. The time now is 04:09.

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