-
In computer programming, a constant is a value that should not be altered by the program during normal execution, i.e., the value is constant.
-
You also may make constants in PawnScript:
const[int]MY_FIRST_CONST=1
You also may create boolean and string constants:
const[bool]MY_FIRST_CONST=true
const[str]MY_FIRST_CONST="string"
- Integers are whole numbers.
const[int]integer=27
- Booleans are variables that can either be true or false.
const[bool]boolean=false
- Strings are words or sequences of characters.
const[str]string="Some text"
- Doubles are numbers with decimal points.
const[double]decimal=45.3
- Single characters.
const[char]character='z'