What's new command
#4

"\n" is not a null character its a new line character. The null character is "\0" which represent end of string. you do not need to add this as its done automatically, but you need to make sure your array size when you create the "whatsnew" variable is the size of the string your doing + 1 extra for the null character which pawn will put in for you. So essentially if your string is 600 characters long you make the array size 601
Reply


Messages In This Thread
What's new command - by Amit1998 - 23.06.2014, 00:13
Re: What's new command - by Threshold - 23.06.2014, 00:24
Re: What's new command - by Amit1998 - 23.06.2014, 00:34
Re: What's new command - by DeStunter - 23.06.2014, 00:45

Forum Jump:


Users browsing this thread: 1 Guest(s)