Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock AddSeparatorLY(string[],separator[]){
- new tStr[MAX_SEP_LY_STRING];
- format(tStr,sizeof(tStr),"%s",string);
- if(strlen(tStr) < 4) return tStr;
- new iPos = strlen(tStr), iCount = 1;
- while(iPos > 0){
- if(iCount == 4){
- iCount = 0;
- strins(tStr,separator[0],iPos,1);
- iPos++;
- }
- iCount++;
- iPos--;
- }
- return tStr;
- }
Add Comment
Please, Sign In to add comment