Function CreateForce

The native JASS function CreateForce creates a group of players. You cannot add players to a force without first initializing it with this function.

Correct usage:

local force f = CreateForce call ForceAddPlayer( Player(0))

This will not work:

local force f call ForceAddPlayer(Player(0))