Re: Old Habbo Imager script
Everytime I'm saying to some people you have to make from your idea a story :D
Look. First we have to know if you have experience with php?
Re: Old Habbo Imager script
Credits to Near.
PHP Code:
public function convertFigure($figure) {
$start = 0;
$parts = array();
$increase_start = array(0, 5, 10, 15, 20);
for($x = 0; $x < 10; $x++) {
$length = (in_array($start, $increase_start)) ? 3 : 2;
$parts[$x] = substr($figure, $start, $length);
$start = $start + $length;
}
return 'hr-'.$parts[0].'-'.$parts[1].'.hd-'.$parts[2].'-'.$parts[3].'.ch-'.$parts[4].'-'.$parts[5].'.lg-'.$parts[6].'-'.$parts[7].'.sh-'.$parts[8].'-'.$parts[9];
}
Re: Old Habbo Imager script
@ Premiumeye
Yes, I do although not as much as I wish :P
@ Quackster
Thanks mate,
Not sure about how to implement this though. Will try though :)
UPDATE:
@ Quackster
I have implemented this, and now when i do <?php echo($figure); ?> i get this coming out:
hr-ch=-s0.hd-2/5-3,.ch-51,-44.lg--.sh--
UPDATE #2:
@ Quackster
Thanks, My bad I used figure not app :) Fixed now