Raised This Month: $ Target: $400
 0% 

Remove a tab character from a string in pawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
benderrobot
Junior Member
Join Date: Dec 2008
Old 04-01-2011 , 20:04   Remove a tab character from a string in pawn
Reply With Quote #1

Does anyone know how to remove a tab character from a string in pawn?

EDIT: Made the stupid mistake of using replace instead of replace all -.-

Code:
replace_all(text, 1999, "	", "")
__________________
This is my old account, I made a new one here:timmw
Website : timmw.co.uk

Last edited by benderrobot; 04-01-2011 at 20:07. Reason: solved
benderrobot is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-01-2011 , 20:05   Re: Remove a tab character from a string in pawn
Reply With Quote #2

The native trim will remove tab characters.
But if you need it from the middle of the string you can use replace with "^t".
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
benderrobot
Junior Member
Join Date: Dec 2008
Old 04-01-2011 , 20:25   Re: Remove a tab character from a string in pawn
Reply With Quote #3

Yeah I do need to remove from middle, I've changed my code to use ^t instead, thanks.
__________________
This is my old account, I made a new one here:timmw
Website : timmw.co.uk
benderrobot is offline
Reply


Thread Tools
Display Modes

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 14:30.


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