Blockland Forums > Modification Help

%client.isSuperAdmin not working

Pages: (1/1)

Swollow:

When I use it without the %client.isSuperAdmin part it works fine
What am I doing wrong?

--- Code: ---function serverCmdShowText()
{
if(%client.isSuperAdmin && $showText == 0)
{
messageAll('', "Text is now shown");
$showText = 1;
}
}
--- End code ---


Daenth:

You forgot to define %client in the function.

Swollow:


--- Quote from: Daenth on July 13, 2011, 04:37:01 PM ---You forgot to define %client in the function.

--- End quote ---
Oh I see, thanks.

Pages: (1/1)

Go to full version