AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Removing chars from the beggining of a string (https://forums.alliedmods.net/showthread.php?t=13181)

.Prometheus. 05-07-2005 07:43

Removing chars from the beggining of a string
 
Rawr, been working on it for a while, can't work it out, somebody do it for me :D

Thanks, Prometheus.

Mind 05-09-2005 02:48

Suggestion
 
I have no clue as how to do it in small yet but try changing the way to think about it, instead of trying to remove characters in the beginning of the string, try "saving" the rest of the characters in the string that you need, and throw away the original string.

.Prometheus. 05-09-2005 05:14

Tried it, but, someone else came up with a better idea, with a for loop.

Thanks anyway.

Mind 05-09-2005 07:01

Hmm... but I suspect a stringcopy might be a lot faster since small is an interpreting language.. kind of.

But, as long as it works out ok I guess =)


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

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