how to use server api

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

gzhenjin
Posts: 1
Joined: 11 May 2017, 06:52

how to use server api

Postby gzhenjin » 11 May 2017, 07:01

hello
now i am developing multi game by using smartfoxserver.

i have created a room and

I want to dynamically change IsGame of any room value at the client.

so i tried several times with setGame (true) function but i cant change the value.

how can i change the value at client ?

plz help me
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: how to use server api

Postby Lapo » 11 May 2017, 08:04

Hi,
you need to set the parameter when you create the Room, not after.

In other words once a Room has been created as "game Room" you can't change it to "non-game" and viceversa.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 64 guests