View Single Post
ofir753
Senior Member
Join Date: Aug 2012
Old 02-02-2014 , 12:44   Re: SplitString the other part
Reply With Quote #5

Quote:
Originally Posted by KissLick View Post
Something like this?

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    
    
strcopypartpartLensourceindex ] ); // copy everything after source[ index ] to part
    
return true;

Not tested.. first try
Thanks its works!!!
ofir753 is offline