View Single Post
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 07-23-2021 , 14:35   Re: ArrayCreate returns invalid array index
Reply With Quote #9

1. Make some debugging to make sure that you pass correct array handle ID.

2.
Code:
static index, target, szString[16], aHUDMSG_DATA[Hudmessage_SetTask_Data], iTempArray, iTempArrayItem;     iTempArrayItem = str_to_num(params[ copyc(szString, charsmax(szString), params, ' ') ]);     iTempArray = any:str_to_num(szString);
    ArrayGetArray(any:iTempArray, iTempArrayItem, aHUDMSG_DATA); // Error line.
-->>
    ArrayGetArray(Array:iTempArray, iTempArrayItem, aHUDMSG_DATA); // Error line.

3. I can't see the purpose of using "any:" everywhere, can you explain why are you using? You just get confused by using that.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline