Raised This Month: $ Target: $400
 0% 

SplitString the other part


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode