AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Remove a tab character from a string in pawn (https://forums.alliedmods.net/showthread.php?t=154012)

benderrobot 04-01-2011 20:04

Remove a tab character from a string in pawn
 
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, "        ", "")

Emp` 04-01-2011 20:05

Re: Remove a tab character from a string in pawn
 
The native trim will remove tab characters.
But if you need it from the middle of the string you can use replace with "^t".

benderrobot 04-01-2011 20:25

Re: Remove a tab character from a string in pawn
 
Yeah I do need to remove from middle, I've changed my code to use ^t instead, thanks.


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

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