You can't use "switch" for the name of your function because it's Pawn's "reserved word".
Quote:
|
Originally Posted by Pawn "The Language" guide
Arguments that occupy a single cell can be passed by value or by reference.
The default is "pass by value".
To create a function argument that is passed by reference, prefix the argument name with the character &.
Example:
Code:
swap(&a, &b)
{
new temp = b
b = a
a = temp
}
|