Sign In Register

How can we help you today?

Start a new topic
Answered

Running cloud code only once

Is there a way to run code only once on the server, I want to create a preset amount of teams to use for chat rooms (1 per location) but I'm struggling on both the code to create the teams once and also joining from Unity because I keep recieving this error;


GS: RECV:{"@class":".JoinTeamResponse","error":{"teamType":"NOT_SINGULAR_USE_TEAMID"},"requestId":"636362617647336400_1"}


Join team request code:


Best Answer
Hi Ian,

The reason you're getting the error is due to the following:

A player can own more than one of the specified teamType, therefore joining by ownerId and teamType is not sufficient to uniquely identify the team to join. Specify the team by teamId instead.

How are you creating your teams? and what are the settings for the team type?

Cheers,
Omar

 

1 Comment

Answer
Hi Ian,

The reason you're getting the error is due to the following:

A player can own more than one of the specified teamType, therefore joining by ownerId and teamType is not sufficient to uniquely identify the team to join. Specify the team by teamId instead.

How are you creating your teams? and what are the settings for the team type?

Cheers,
Omar

 

Login to post a comment