Search found 8 matches

by kuttoosan
27 May 2011, 05:44
Forum: Server Side Extension Development
Topic: .class extension for dynamic rooms in SFS 1x
Replies: 2
Views: 6405

.class extension for dynamic rooms in SFS 1x

Please do help out in the below issue:


Please tell me whether the following lines of code are correct.

Am creating a room from client side (AS3 code) and I've to attach a .class extension to that room.
$roomData is my room Object.
My .class file is "mixupgame.class". This is stored in the ...
by kuttoosan
02 Dec 2010, 04:43
Forum: Server Side Extension Development
Topic: need help in _server.loginUser()
Replies: 13
Views: 19456

function handleInternalEvent(evt)
{
if (evt.name == "loginRequest")
{
var error = "";
var nick = evt.nick
var pass = evt.pass
var chan = evt.chan

if(pass == "common")
{
// Check login
if (listByname[nick])
{
var response = new Object()

response._cmd = "loginKO ...
by kuttoosan
01 Dec 2010, 08:19
Forum: Server Side Extension Development
Topic: need help in _server.loginUser()
Replies: 13
Views: 19456

Hi BigFIsh,

Need your help again. Am not getting the force login right.

Below is the entire code which is being used for the custom login.

function handleInternalEvent(evt)
{
if (evt.name == "loginRequest")
{
var error = "";
var nick = evt.nick
var pass = evt.pass
var chan = evt.chan

if ...
by kuttoosan
27 Oct 2010, 04:19
Forum: Server Side Extension Development
Topic: need help in _server.loginUser()
Replies: 13
Views: 19456

Thanks a lot BigFIsh..
I shall try with _server.logoutUser.

My SFS console says its 1.6.6...
by kuttoosan
26 Oct 2010, 10:37
Forum: Server Side Extension Development
Topic: need help in _server.loginUser()
Replies: 13
Views: 19456

:( :( It's not working for me...
From 'handleinternalevent' am passing nick, chan and pass to a function, loginCustomUser(nick, pass, chan).
And inside the function am calling:
var obj = _server.loginUser(nick, pass, chan, true);
by kuttoosan
26 Oct 2010, 04:13
Forum: Server Side Extension Development
Topic: need help in _server.loginUser()
Replies: 13
Views: 19456

Hi BigFish,

The response from the server is "The username is already taken".

Thanks
by kuttoosan
25 Oct 2010, 10:08
Forum: Server Side Extension Development
Topic: need help in _server.loginUser()
Replies: 13
Views: 19456

Username is already taken

Hi,

My sfs version is SmartfoxServer Pro ver 1.6.6

I've tried using _server.loginUser(nick, pass, chan, true), but still the user is not able to login.

I've also used, _server.disconnectUser(_server.getUserById(nick)) in kick user

please help me solve this problem.