Raised This Month: $ Target: $400
 0% 

remove letters frome string?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-02-2008 , 17:03   Re: remove letters frome string?
Reply With Quote #4

In case where you don't need to remove prefix map, you can do something like:

Code:
sMap[ contain( sMap, "_" ) + 1 ];

E.g.: you want to display map without prefix, you can do directly :

Code:
client_print( id, print_chat, "Current Map : %s", sMap[ contain( sMap, "_" ) + 1 ] );

contain() returns position of '_'. And +1, because we want to display all characters after '_'.

That's why I've said it depends how you code after.
__________________

Last edited by Arkshine; 01-02-2008 at 17:07.
Arkshine 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 11:12.


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