• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Dot at 1.000

A

Andreas Landertshammer

Guest
Is there any way to transform a string,as example 1000 to 1.000? or 1000000 to 1.000.000?
 

Conbeef

Member
Code:
///scr_dot_at(string);

var _str = argument0;
var _str_length = string_length(_str);

for(var i = _str_length-3; i > 0; i -=3){
    _str = string_insert(_str,".";i);
}

return _str;
I'm not use to manipulating strings, but I think this will work..........Think xD
 
Top