Search found 5 matches

by alikapadia
02 Jul 2006, 01:21
Forum: SmartFoxServer 1.x Discussions and Help
Topic: switchSpectator reverse?
Replies: 1
Views: 2061

switchSpectator reverse?

Hi, i searched for it on the forum and bumped into one where i found that there isnt any feature that switches a player back into a spectator yet. i know there is a workaround to get the user to leave the room and join again as a spectator, but any idea if a switchPlayer feature will be there in the...
by alikapadia
16 May 2006, 10:01
Forum: SmartFoxServer 1.x Discussions and Help
Topic: player index on onUserEnterRoom
Replies: 5
Views: 3965

userId increments based on users connecting to smartfox, player index starts from 1 when a user joins a room and is the first player, and for the next entering player, the value increments by 1 regardless of user id. the feature that makes it ideal for me is that it fills up empty spaces between the...
by alikapadia
16 May 2006, 09:37
Forum: SmartFoxServer 1.x Discussions and Help
Topic: player index on onUserEnterRoom
Replies: 5
Views: 3965

oh, i though tthat gave the user id and not player index :) , i just tried it, its returning me the userId, so like my user Id was 3 and i was the first player in my game room, then the second player to enter the room, when i getId() it, i get 4.. which is the user Id, i need the player id / player ...
by alikapadia
15 May 2006, 21:17
Forum: SmartFoxServer 1.x Discussions and Help
Topic: onRoomListUpdate does not send vars!
Replies: 23
Views: 16883

ya there was a problem in the SmartfoxClient class in the it folder, search for: 'if (action == "roomAdd")' over there was a line that said: var variables = xmlObj.vars.vars just changed that to 'var variables = xmlObj.rm.vars.vars' rest works like a beauty im not sure where this problem c...
by alikapadia
15 May 2006, 18:19
Forum: SmartFoxServer 1.x Discussions and Help
Topic: player index on onUserEnterRoom
Replies: 5
Views: 3965

player index on onUserEnterRoom

hi, is there a way to recieve the index assigned to a user in the: smartFox.onUserEnterRoom() event, so that when a user joins a room, all the users present in the room get the index of the player assigned by the server. Actually i want to use this index for placing a player in my interface when he ...

Go to advanced search