18.08.2009, 12:28
for those wanting to replace split with explode you can do this to easily replace all instances of split with explode.
this is because the first two parameters for explode and split are backwards so the first parameter in split is the second parameter in explode, vice versa.
^ using that you will have to change the delimiter to a string aswell, so ',' to ",".
or you could possibly use
and not have to change the delimiter to a string. But westie was talking of removing chr_explode.
so using that define you can find & replace all instances of split( with explode_(
pawn Код:
#define explode_(%1,%2, explode(%2,%1
^ using that you will have to change the delimiter to a string aswell, so ',' to ",".
or you could possibly use
pawn Код:
#define explode_(%1,%2, chr_explode(%2,%1
so using that define you can find & replace all instances of split( with explode_(