0101: Variable is not a class instance
Compiler found a possible class method used with a variable, but the variable type is unknown:
In order to correctly identify the command used here, the compiler should know what class the $player
variable represents.
Possible solutions:
Define the type of the variable explicitly using a
var
keyword:
Define the type of the variable explicitly using the
Player
class name:
Use a combination of the class name and class method:
Last updated