DataPacks(?) and Dynamic Arrays how to store some data
From file i want to extract some data which are saved in scheme as below:
PHP Code:
Numbers of data, and entries in data this always will be randomly. so how to save this? Maybe some datapacks? |
Re: DataPacks(?) and Dynamic Arrays how to store some data
So.. if someone will have common problem, here is a solution.
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: DataPacks(?) and Dynamic Arrays how to store some data
this should be in Code Snippets :/.
|
Re: DataPacks(?) and Dynamic Arrays how to store some data
Using another Array to handle an array (since you have a fixed number of values, 5) seems more suit than using datapack here.
|
Re: DataPacks(?) and Dynamic Arrays how to store some data
With datapacks are more troubles than i knew it can be.
All datapacks which i'm creating has always 5 values when i want to read a value from postion no. 1 log PHP Code:
PHP Code:
|
Re: DataPacks(?) and Dynamic Arrays how to store some data
Because you don't read the documentation. You misunderstand SetPackPosition(), it expects a value from GetPackPosition(), not an arbitrary index. It might be confusing, we should probably do like SourceMod (they have the same api) and adding a tag for position to both natives.
|
Re: DataPacks(?) and Dynamic Arrays how to store some data
read I read.
Apperantly I did not undestood. Thanks a lot for help |
| All times are GMT -4. The time now is 20:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.