This works:
Code: Select all
/c pos = game.player.position
/c game.print(string.format("[gps=%s, %s]", pos.x, pos.y))
This doesn't work:
Code: Select all
/c pos = game.player.position
/c game.print(string.format("[gps=%s, %s, %s]", pos.x, pos.y, game.player.surface.name))