Splitting numbers.
#2

I would just do it the easy way and use Valstr. For example,

pawn Код:
new number = 1223, str[5];
valstr(str, number);
//str[0] = "1"
//str[1] = "2"
//str[2] = "2"
//str[3] = "3"
You can just use string functions to split it. May be an easier way, but that's just how I'd do it.
Reply


Messages In This Thread
Splitting numbers. - by Roel - 16.05.2013, 08:57
Re: Splitting numbers. - by [HiC]TheKiller - 16.05.2013, 09:02
Re: Splitting numbers. - by Emmet_ - 16.05.2013, 09:08
Re: Splitting numbers. - by Roel - 16.05.2013, 09:10
Re: Splitting numbers. - by Vince - 16.05.2013, 09:59
Re: Splitting numbers. - by Roel - 16.05.2013, 10:19

Forum Jump:


Users browsing this thread: 1 Guest(s)