Raised This Month: $51 Target: $400
 12% 

Can you write arrays in datapacks?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dilalmon
AlliedModders Donor
Join Date: Apr 2013
Old 08-11-2016 , 18:21   Can you write arrays in datapacks?
Reply With Quote #1

Can you write arrays of Float or integers in datapacks?
Would this be possible?
dilalmon is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 08-11-2016 , 18:32   Re: Can you write arrays in datapacks?
Reply With Quote #2

Yep, you do it the same way you write a single float or integer, except you do it multiple times
Miu is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-11-2016 , 18:54   Re: Can you write arrays in datapacks?
Reply With Quote #3

Quote:
Originally Posted by Miu View Post
Yep, you do it the same way you write a single float or integer, except you do it multiple times
More on this,
You should store the amount of values you will be storing:
Code:
datapack.WriteCell(amount);
for(int i=0;i<=amount;i++) {
  datapack.WriteCell(i);
}
or something like that.
Mitchell is offline
dilalmon
AlliedModders Donor
Join Date: Apr 2013
Old 08-11-2016 , 19:22   Re: Can you write arrays in datapacks?
Reply With Quote #4

I supposed that is the only way I suppose. Thank you guys!
dilalmon 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:05.


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