View Single Post
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen.
Old 08-12-2013 , 07:32   Re: shorten a string ?
Reply With Quote #3

Quote:
Originally Posted by Impact123 View Post
They easiest you can do in this case is this.
PHP Code:
test[4] = '\0'
Yours sincerely
Impact
So, by doing this if I do something like this :

if(test[4] == "test")
PrintToChatAll("Sucess, the value of "test" is %s", test[0]);

it's will work ?

EDIT : Yep, it's work.
__________________
Want to check my plugins ?

Last edited by Arkarr; 08-12-2013 at 07:37.
Arkarr is offline