Moderator error/ban and kick in game. (PLEASE HELP!)

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
Gokhan137Cp
Posts: 6
Joined: 01 Jul 2011, 14:52
Contact:

Moderator error/ban and kick in game. (PLEASE HELP!)

Post by Gokhan137Cp »

Hey everyone! I am having a big problem...my game does not have a login database and I created a button that only moderators can see and can ban other players with. But when I login with the moderator name and try to ban a user I get this error
11:48:42.268 - [WARNING] > A non-Admin user has sent an Admin request. Req:kick, User: Gokhan137, IP: (********)
This is the code that I used in the button

Code: Select all

on (release) 
{ 
   var dataObj:Object = {} 

dataObj.id = userId.toString() 
kickObj.userKick = _root.userList_lb.getSelectedItem().label; 
smartfox.sendXtMessage("$dmn", "kick", dobj); 
} 
If anyone has a solution PLEASEEE help!
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Post by rjgtav »

Hi. As the error says, you're sending that request from a non admin Usser, in this case, from a non Moderator user. Thats the only thing i can say based on the information you provided.

You could check in the adminTool if the user is really being recognized as a Moderator.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Gokhan137Cp
Posts: 6
Joined: 01 Jul 2011, 14:52
Contact:

Thanks

Post by Gokhan137Cp »

Thanks for the fast reply! But the users ARE moderators as I put in the config .xml file...do I need to have a login database? Because for my game at the moment I don't have one.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Post by rjgtav »

Did u check in the adminTool if they're really moderators? Go to Zone Browser > Your Zone > Your Room > Click the user and check if it says moderator: true
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Gokhan137Cp
Posts: 6
Joined: 01 Jul 2011, 14:52
Contact:

Thanks again :)

Post by Gokhan137Cp »

They are moderators I checked the zone browser, but when I log on and check the room it says Moderator = false :s
Gokhan137Cp
Posts: 6
Joined: 01 Jul 2011, 14:52
Contact:

Question

Post by Gokhan137Cp »

But is there a way I can make the player admin?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Post by rjgtav »

Are you using a custom login? If yes, check this topic:
- http://forums.smartfoxserver.com/viewto ... +moderator

And no you cant turn an user admin, only moderator.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Post Reply