GetPlayerId

Parameters
whichPlayer player

Target player.

comment

Returns player ID of player (which starts with zero; e.g. player red is 0).

note

For one-based WorldEdit-type IDs see: GetConvertedPlayerId. Also: Player.

return type
integer
Source code
constant native GetPlayerId             takes player whichPlayer returns integer
Source
common.j
wc3modding.com
GetPlayerId