View Single Post
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 08-12-2013 , 07:54   Re: shorten a string ?
Reply With Quote #4

No, don't do that.
Strings are char arrays, thus the number there is a index of the array which refers to a single char.
You can't compare chars with strings that way, use something like this instead.
Using an string index with PrintTo* is a special case i won't explain here, more info below.
Before you continue, please head over here and read how strings in SourcePawn work.

Yours sincerely
Impact
__________________

Last edited by Impact123; 08-12-2013 at 07:56.
Impact123 is offline