Search found 56 matches

by poppop
11 Oct 2007, 15:13
Forum: Server Side Extension Development
Topic: 1. destroyRoom - with peeps in it??
Replies: 1
Views: 1565

1. destroyRoom - with peeps in it??

Hello all, I'm using this command to destory a room created in a server side extension, it's owned by the server, and this command works great when the room is empty: _server.destroyRoom(thisZone, rroom) Trouble is, somtimes, the room can have 1 or 2 people left it in when it needs to be destoryed. ...
by poppop
26 Sep 2007, 10:09
Forum: SmartFoxServer 1.x Discussions and Help
Topic: [SNEAK PEEK] Next generation SFS engine performance
Replies: 6
Views: 6169

WOW :lol: Forget new features! -- The speed increase alone makes it totally amazing! I cannot wait to see more news on this!! How about an "area51 phpbb" blog type page where you can keep everyone up-to-date??? I love reading sneek-peeks, and info. Thanks Lapo :) (I just hope the migration...
by poppop
15 Sep 2007, 17:14
Forum: Server Side Extension Development
Topic: Get uservaribles only from "any users" name???
Replies: 5
Views: 2478

No, the way i have made it, i cannot get the users ID from the client, just the users name.

This isnt to get the user varibles of the person who made request to the server -- it's to get any other users varibles in the room.
by poppop
15 Sep 2007, 08:34
Forum: Server Side Extension Development
Topic: Get uservaribles only from "any users" name???
Replies: 5
Views: 2478

thanks patso. I only have the persons name that i want to check. This is in a server side extension, not a room extension. Getting all users in the room seems like such a waste of cpu power -- when you know exactly the user you are looking for. In my app, a user clicks another players name -- "...
by poppop
14 Sep 2007, 18:57
Forum: Server Side Extension Development
Topic: Get uservaribles only from "any users" name???
Replies: 5
Views: 2478

Get uservaribles only from "any users" name???

Hello, I cannot work somthing out, I send a users name to the server (the user is in the same room) and try to get his varibles like this: var thisRoom = _server.getCurrentZone().getRoom(fromRoom) var sfsUser = newRoom.getUser("bob"); var hisAge = sfsUser.getVariabl...
by poppop
14 Sep 2007, 18:51
Forum: Server Side Extension Development
Topic: checking if a room exists?
Replies: 4
Views: 3136

Thanks mate, got it working now :lol:
by poppop
09 Sep 2007, 17:20
Forum: Server Side Extension Development
Topic: checking if a room exists?
Replies: 4
Views: 3136

Hi, I could really do with an answer to this question. I cannot do anything else on this project while i cannot check if a room exists???

I just need a simple way to see if a room exists??

Please?

Thanks for any help.
by poppop
02 Sep 2007, 21:47
Forum: Server Side Extension Development
Topic: checking if a room exists?
Replies: 4
Views: 3136

checking if a room exists?

Hello, I need to check if a room exists, before it can be destroyed. I have an array of rooms to delete, stored by their room id's But some may have already been deleted. I tried, just calling the room like this: var AAa = _server.getCurrentZone().getRoom("test room number") But when the r...
by poppop
31 Aug 2007, 10:17
Forum: Server Side Extension Development
Topic: Whats the best way to do "timers"
Replies: 2
Views: 2269

Whats the best way to do "timers"

Alright guys,

I want to add a timer to my game, to limit players to a set amount of time.

How should this be done server side?

As a room variable or server variable.

And how is the best way to do it?

Thanks.
by poppop
27 Aug 2007, 13:05
Forum: Server Side Extension Development
Topic: Few questions...
Replies: 2
Views: 2067

Few questions...

Hi, Just a few questions... 1. How do you use the "user" object in the handleRequest function to get the users name? 2. How would you get the number of users in any room in the current zone? Hopefully, somthing like "room name".getUsers() or somthing where i can type the room nam...
by poppop
24 Aug 2007, 10:00
Forum: Server Side Extension Development
Topic: getAllUsers() is reporting an error...
Replies: 9
Views: 5000

Thanks for all the help guys!!! :lol:

patso -- your code worked perfect, thanks so much! :idea:
by poppop
23 Aug 2007, 16:54
Forum: Server Side Extension Development
Topic: getAllUsers() is reporting an error...
Replies: 9
Views: 5000

patso -- You are right, this is a zone level extension.

How can i use the fromRoom object to get the users in that roon then?


Code: Select all

function handleRequest(cmd, params, user, fromRoom) {

fromRoom.getAllUsers();



Somthing like that would be great.

Cheers.
by poppop
23 Aug 2007, 16:16
Forum: Server Side Extension Development
Topic: getAllUsers() is reporting an error...
Replies: 9
Views: 5000

All i really want to do, is send a server response to all users in the current room? using actionscript, server side :)

Thanks again.
by poppop
23 Aug 2007, 16:00
Forum: Server Side Extension Development
Topic: getAllUsers() is reporting an error...
Replies: 9
Views: 5000

line 91 is this: var room = _server.getCurrentRoom() trace("room: " + room) usersInRoom = room.getAllUsers() trace("users: " + usersInRoom) _server.sendResponse(response, -1, null, usersInRoom); The output of this trace on line 90: trace("room: " + room) is: "room:...
by poppop
23 Aug 2007, 09:39
Forum: Server Side Extension Development
Topic: getAllUsers() is reporting an error...
Replies: 9
Views: 5000

Thanks Lapo, I get the same error: 2007/08/23 11:05:19.921 - [ WARNING ] [id: 11] (JavascriptExtension.logASError): Error in extension [ myExt.as ]: TypeError: Cannot call method "getAllUsers" of null (myExt.as#1421) Internal: 91 -- Line number: 91 in file: myExt.as

Go to advanced search