Search found 1673 matches

by BigFIsh
02 Oct 2011, 22:00
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Timed Sounds
Replies: 1
Views: 980

Sorry, but this isn't really related to SmartFoxServer at all. Please look or ask elsewhere. Suggestion: FlashKit or Google.
by BigFIsh
02 Oct 2011, 21:59
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Avatar Chat Errors
Replies: 22
Views: 6738

No no.. :roll: you need to send the user id and name inside your response package, like this: var u = _server.instance.getUserByChannel(chan); response.userId = u.getUserId(); Then on client side, you need to set myUserId and myUserName using the data u just sent from serverside. i.e. smartFox.myUse...
by BigFIsh
30 Sep 2011, 17:05
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Avatar Chat Errors
Replies: 22
Views: 6738

Yes, you need to pass the userId and userName via your zone extension upon successful login. In other words, you send them with your 'logOK' command.
by BigFIsh
30 Sep 2011, 17:04
Forum: SmartFoxServer 1.x Discussions and Help
Topic: _server.getCurrentRoom() - null for extension in config
Replies: 2
Views: 1232

_server.getCurrentRoom() only works for room extensions. So if myDatabaseExtension is a zone extension, that method won't work.
by BigFIsh
28 Sep 2011, 19:10
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Reading server-owned roomVars change without onJoin?
Replies: 8
Views: 2800

Mm.. I would have expected that to work. I havn't tried that code though. So I must've assumed wrong. :oops:

Anyway, glad you got it working.
by BigFIsh
27 Sep 2011, 23:02
Forum: SmartFoxServer 1.x Discussions and Help
Topic: set and update Roomvariables...
Replies: 17
Views: 6921

Well, according to this documentation it would look like: <Rooms> <Room name="Pre-defined room name" .... ... /> </Rooms> As for your second question. Sure, it will work with dynamic rooms - assuming you mean by 'creating a new room at run-time via your extension while running SFS'
by BigFIsh
27 Sep 2011, 22:57
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Reading server-owned roomVars change without onJoin?
Replies: 8
Views: 2800

I see some confusion here. smartFox.getRoomList() will trigger a call to the server to return a full list of all the rooms which in turn will trigger the local room list update function. That's not what you want here. After receiving the variable update from the server (via onExtensionResponse), you...
by BigFIsh
27 Sep 2011, 22:45
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Bad/Good Guys
Replies: 6
Views: 1950

Hello, this is really something that you and your staff will need to figure out how to implement those kind of things. It's very straightforward after understanding how data exchange between players or from server to player and vice visa work and interaction with the database via an extension. There...
by BigFIsh
27 Sep 2011, 22:41
Forum: SmartFoxServer 1.x Discussions and Help
Topic: How would I make an user an admin, without pass login?
Replies: 2
Views: 1394

You have already asked this question in a different topic. Please stick to that one.
by BigFIsh
27 Sep 2011, 22:40
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Avatar Chat Errors
Replies: 22
Views: 6738

Those info need to be passed from the extension upon successful login in which you will then need to manually set them.
by BigFIsh
27 Sep 2011, 22:37
Forum: Server Side Extension Development
Topic: [ask] can i have userId from database?
Replies: 6
Views: 3292

Yes, it's okay to give out SFS User ID but as rjgtav said, it's not wise to provide the Database ID. Database ID should only be stored on server side.
by BigFIsh
27 Sep 2011, 22:35
Forum: Server Side Extension Development
Topic: Adding zones dynamically
Replies: 1
Views: 1514

See http://www.smartfoxserver.com/forums/viewtopic.php?t=9029.

I think dynamic zone creation is supported in SFS2X.
by BigFIsh
25 Sep 2011, 19:11
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Avatar Chat Errors
Replies: 22
Views: 6738

If you're using custom login, you will need to manually set sfs.myUserId and sfs.myUserName upon successful login in order for setUserVariables to work. Please refer to http://www.smartfoxserver.com/docs/docPages/tutorials_pro/09_secureLogin/index.htm as it will have more information about this.
by BigFIsh
25 Sep 2011, 19:02
Forum: SmartFoxServer 1.x Discussions and Help
Topic: AS2 Arrow Key Script
Replies: 1
Views: 978

Once you have learnt the basic of sending/receive messages to/from other players, this should be easy to do. Please consult the tutorials as found in the online documentation for examples how to achieve this. Particularly with the 'Real-time maze' example (http://www.smartfoxserver.com/docs/docPages...
by BigFIsh
23 Sep 2011, 23:22
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Reading server-owned roomVars change without onJoin?
Replies: 8
Views: 2800

Ah, that's not how it's done. case "closeRoom": rVars.push({name:"isStarted", val:"true", persistent:true}); smartFox.setRoomVariables(rVars, resObj.startedGameName, false); break This code is used to set or update a new or existing room variab...

Go to advanced search