Arkan
Nobody rides for free
- Reaction score
- 92
Yeah I thought the code would have to be alot longer before difficulties would appear.
Anyway, I'm not very good at compression and stuff, can you further elaborate what you mean with:
and how I would split it up into 5 different values again after loading?
let's say value1= 1
value2= 3
value3= 0
value4= 4
value5= 2
then (2*10000) + (4*1000) + (0*100) + (3*10) + 1 = 24031
save compressed integer 24031 (would save 2 letters right?)
load value1= ?
value2= ?
value3= ?
value4= ?
value5= ?
Your help is much appreciated.
Anyway, I'm not very good at compression and stuff, can you further elaborate what you mean with:
Code:
value5 * 10000 + value4 * 1ooo [COLOR="Red"](surely you mean 0's (zeroes)??)[/COLOR]+ value3 * 100 + value2 * 10 + value1
and how I would split it up into 5 different values again after loading?
let's say value1= 1
value2= 3
value3= 0
value4= 4
value5= 2
then (2*10000) + (4*1000) + (0*100) + (3*10) + 1 = 24031
save compressed integer 24031 (would save 2 letters right?)
load value1= ?
value2= ?
value3= ?
value4= ?
value5= ?
Your help is much appreciated.