Getting maximum and current budgets properly
Getting maximum and current budgets properly
I've been having problems getting the correct budget value from an usermap.
Shade45's usermap says it's a floating point number, so I tried to read it, but it's wrong. The numbers are too big to be a budget. I've tried changing it to integer too and same problem.
Does anyone know how to correctly get the budget value or tell me more info about budgets.
Shade45's usermap says it's a floating point number, so I tried to read it, but it's wrong. The numbers are too big to be a budget. I've tried changing it to integer too and same problem.
Does anyone know how to correctly get the budget value or tell me more info about budgets.
- SPARTAN-OMEGA
- Posts: 497
- Joined: Sun Dec 24, 2006 10:09 am
- Location: stuck on delta halo...
- Contact:
Shades right, try a bit harder

Join Halo 2.5 at http://halo25pro.yourfreebb.com/index.php
dont delete its not over the 5 line max in rules
- SPARTAN-OMEGA
- Posts: 497
- Joined: Sun Dec 24, 2006 10:09 am
- Location: stuck on delta halo...
- Contact:
Im not sure, Ive only found it not edited it

Join Halo 2.5 at http://halo25pro.yourfreebb.com/index.php
dont delete its not over the 5 line max in rules
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
![]() |
![]() |
I am reading it in Big Endian yes.shade45 wrote:Are you reading it in Big Endian because it seems to be correct in every usermap I've seen??
Here's my code:
Code: Select all
PlacementBlock.Block.Maximum_Budget = io.In.ReadSingle(EndianType.BigEndian);
PlacementBlock.Block.Current_Budget = io.In.ReadSingle(EndianType.BigEndian);
- SPARTAN-OMEGA
- Posts: 497
- Joined: Sun Dec 24, 2006 10:09 am
- Location: stuck on delta halo...
- Contact:
Ya thats not what I found for budget

Join Halo 2.5 at http://halo25pro.yourfreebb.com/index.php
dont delete its not over the 5 line max in rules
- SPARTAN-OMEGA
- Posts: 497
- Joined: Sun Dec 24, 2006 10:09 am
- Location: stuck on delta halo...
- Contact:
Thank you, I never could find current budget 


Join Halo 2.5 at http://halo25pro.yourfreebb.com/index.php
dont delete its not over the 5 line max in rules