View Single Post
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 02-02-2014 , 13:22   Re: SplitString the other part
Reply With Quote #6

A little mistake in my code..

PHP Code:
stock bool:SplitStringRight( const String:source[], const String:split[], String:part[], partLen 

    new 
index StrContainssourcesplit ); // get start index of split string 
     
    
if( index == -// split string not found.. 
        
return false
     
    
index += strlensplit ); // get end index of split string

    
if( index == strlensource ) - // no right side exist
        
return false;
 
    
strcopypartpartLensourceindex ] ); // copy everything after source[ index ] to part 
    
return true

KissLick is offline