68,823
edits
No edit summary |
No edit summary |
||
Line 169: | Line 169: | ||
There are two kinds of the strings used. | There are two kinds of the strings used. | ||
{{note|str8}} '''Short string'''. This is the most common type of a string, that is used in every game since | {{note|str8}} '''Short string'''. This is the most common type of a string, that is used in every game since GTA III. The term ''short'' means that this string is strongly limited to its length. Maximum symbols it could contain is 7 and the last one (8th) is a [[Wikipedia:null terminator|null terminator]] byte. When compiled such strings occupy 8 bytes of a [[SCM]] file no matter if the string is actually shorter (the rest of bytes is filled with zero bytes). | ||
{{note|sa16}} SA scripting engine also has data type 15 that denotes the short string containing up to 15 symbols. This kind of strings is only supported by [[Sanny Builder]]. They are handled in a same manner as 8-bytes strings, but occupy 16 bytes of a SCM file. | {{note|sa16}} SA scripting engine also has data type 15 that denotes the short string containing up to 15 symbols. This kind of strings is only supported by [[Sanny Builder]]. They are handled in a same manner as 8-bytes strings, but occupy 16 bytes of a SCM file. |