Raised This Month: $ Target: $400
 0% 

[HELP] Run time error 10 (cs_set_weapon_ammo)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-16-2018 , 19:50   Re: [HELP] Run time error 10 (cs_set_weapon_ammo)
Reply With Quote #1

http://www.amxmodx.org/api/engine/find_ent_by_owner

Code:
[CSTRIKE] Non-player entity 0 out of range [AMXX] Run time error 10: native error (native "cs_set_weapon_ammo") [AMXX] [0] gn_retake.sma::playerSpawned (line 127)
Code:
Return Entity index if an entity was found, 0 otherwise
__________________
Bugsy is offline
GoldNux
Senior Member
Join Date: Mar 2018
Old 05-16-2018 , 19:54   Re: [HELP] Run time error 10 (cs_set_weapon_ammo)
Reply With Quote #2

Quote:
Originally Posted by Bugsy View Post
http://www.amxmodx.org/api/engine/find_ent_by_owner

Code:
[CSTRIKE] Non-player entity 0 out of range [AMXX] Run time error 10: native error (native "cs_set_weapon_ammo") [AMXX] [0] gn_retake.sma::playerSpawned (line 127)
Code:
Return Entity index if an entity was found, 0 otherwise
Ahh I see, so this can be ignored. Thank you sir.
__________________
Try my version of de_dust2, I think it's great and you should check it out!
https://gamebanana.com/mods/83731

Last edited by GoldNux; 05-16-2018 at 19:58.
GoldNux is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 05-17-2018 , 10:25   Re: [HELP] Run time error 10 (cs_set_weapon_ammo)
Reply With Quote #3

Quote:
Originally Posted by GoldNux View Post
Ahh I see, so this can be ignored. Thank you sir.
You need to check if this entities exist before doing stuff with them, so no, don't ignore the error, fix the code.
__________________

Last edited by HamletEagle; 05-17-2018 at 10:25.
HamletEagle 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 04:36.


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