#5

let me quote ******
Quote:

A string in PAWN is just an array of characters, no different to any other array. Strings are NULL terminated, this means they all have the character '\0' (NULL) at the end (ASCII code 0, different to the character '0' which has an ASCII code of 4. If you have the following string:

pawn Code:

new
str[3] = "hi";


It is really 3 cells long - one for the 'h', one for the 'i' and one for the NULL character to signal the fact that the string has finished.

source
Reply


Messages In This Thread
Help - by IceKold - 03.08.2013, 16:40
Re: Help - by SsHady - 03.08.2013, 16:48
Re: Help - by sleepysnowflake - 03.08.2013, 16:49
Re: Help - by IceKold - 03.08.2013, 16:58
Re: Help - by sleepysnowflake - 03.08.2013, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)