[QUESTION]: Difference between....
#2

Quote:

Strings in PAWN (and other languages) are what's called "NULL terminated", this means that when 0 is reached, the string ends. This is not the same as the character "0", represented by the number 48, this is the NULL character, represented by the number 0. This means that you can have a string array 20 cells large but only have a string 3 characters long if the fourth character is the NULL character, signalling the end of the string. You can not however have a string 20 characters long as the NULL character MUST be in the string, so in a 20 cell array you can have a 19 character string and a NULL termination character.

Source : https://sampwiki.blast.hk/wiki/Scripting_Basics
Reply


Messages In This Thread
[QUESTION]: Difference between.... - by TH3_R3D™ - 12.01.2014, 14:36
Re: [QUESTION]: Difference between.... - by SilentSoul - 12.01.2014, 14:38
Re: [QUESTION]: Difference between.... - by Vince - 12.01.2014, 14:39
Re: [QUESTION]: Difference between.... - by TH3_R3D™ - 12.01.2014, 14:42

Forum Jump:


Users browsing this thread: 1 Guest(s)