Raised This Month: $ Target: $400
 0% 

ADT arrays & data corruption


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 05-18-2015 , 15:35   ADT arrays & data corruption
Reply With Quote #1

it seems that GetArrayArray does not always work as intended.
I can build an array with 10 or so items, and use GetArrayArray, and the cells will be fine if i check them right after it's built. However, if I attempt to access it later, GetArrayArray returns all zeros, and if i use GetArrayCell on each item, it returns unpredictable results.

Nevermind, it seemed it was calculating the blocksize incorrectly even though I was using ByteCountToCells...
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 05-18-2015 at 15:39.
friagram is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-18-2015 , 16:04   Re: ADT arrays & data corruption
Reply With Quote #2

Quote:
Originally Posted by friagram View Post
Nevermind, it seemed it was calculating the blocksize incorrectly even though I was using ByteCountToCells...
You know ByteCountToCells is ONLY for adt_arrays that store Strings, right?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-18-2015 at 16:08.
Powerlord 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 11:21.


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