Page 1 of 1

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

Posted: 01 Jul 2011, 15:07
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!

Posted: 01 Jul 2011, 15:54
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.

Thanks

Posted: 01 Jul 2011, 16:02
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.

Posted: 01 Jul 2011, 16:18
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

Thanks again :)

Posted: 01 Jul 2011, 16:31
by Gokhan137Cp
They are moderators I checked the zone browser, but when I log on and check the room it says Moderator = false :s

Question

Posted: 01 Jul 2011, 16:32
by Gokhan137Cp
But is there a way I can make the player admin?

Posted: 01 Jul 2011, 17:02
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.