need help

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

Moderators: Lapo, Bax

User avatar
Posts: 89
Joined: 05 Sep 2011, 19:31

Postby zachofthegolden1 » 20 Sep 2011, 18:39

ive made the bade hidden it just wont show at all even for moderators

Code: Select all

if (smartfox.amIModerator)
this._modBadge._visible = true
this._modBadge._visible = true

if (user.isModerator)
    this._modBadge._visible = true

I used that code in the On user enter room
User avatar
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 20 Sep 2011, 21:58

On user enter room event is for other users. The code should be placed in onJoinRoom event. If testing if other users is a moderator, use isModerator()
Smartfox's forum is my daily newspaper.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 46 guests