So for every ArrayCreate() called, you output the handle and all are valid? Are you 110% certain that your handle storage mechanism is working correctly?
I didnt output the handle but i outputed the array counts but when an invalid array is returned from ArrayCreate i demolished the set_task from getting called.
No they've stayed as they were because -1 meaning the array is not created.
Quote:
Originally Posted by Bugsy
Have you tried passing the handle directly in set_task() and ensure you destroy each one when done?
I forget to mention after the error occurs within a while, bunch of plugins will start getting defecated meaning they will throw a bunch of random errors such as index out of bounds and other errors.
if(iTempArray == Invalid_Array) { server_print("Failed to create a temporary 'HUDMSG DATA PARAMS ARRAY'"); server_print("Task (%s) has failed to get on repeat!", xArray2[HUDMSG_ID]); continue; } }
Here're some random errors...
Code:
L 07/27/2021 - 11:45:18: Invalid player id 0
L 07/27/2021 - 11:45:18: [AMXX] Run time error 10 (plugin "cs_player_models_api.amxx") (native "set_user_info") - debug not enabled!
L 07/27/2021 - 11:45:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 07/27/2021 - 11:45:18: Invalid array handle provided (0)
L 07/27/2021 - 11:45:18: [AMXX] Displaying debug trace (plugin "jb_effects_system.amxx", version "2.6.6")
L 07/27/2021 - 11:45:18: [AMXX] Run time error 10: native error (native "ArrayGetArray")
L 07/27/2021 - 11:45:18: [AMXX] [0] jb_effects_system.sma::task_hudmessage_repeat (line 968)
L 07/27/2021 - 11:45:23: Invalid array handle provided (0)
Code:
L 07/27/2021 - 11:52:56: [AMXX] Displaying debug trace (plugin "Jailbreak_main.amxx", version "2.6.6")
L 07/27/2021 - 11:52:56: [AMXX] Run time error 10: native error (native "menu_item_getinfo")
L 07/27/2021 - 11:52:56: [AMXX] [0] Jailbreak_main.sma::primary_wpnshandle (line 736)
L 07/27/2021 - 11:52:56: Invalid menu id 1(32)
i just found a bug or a potential bug if you may say, some of the players might not have any weapons although this still been called, so if it was called without any weapons in the menu, the menu will simply won't be displayed, so the menu is been created and its not destroyed and it might make a problem latter.