View Single Post
Author Message
Synaesthesia
New Member
Join Date: Nov 2019
Old 11-19-2019 , 05:24   GetAdminFlag Tag Mismatch
Reply With Quote #1

PHP Code:
new AdminId:adminID GetUserAdmin(client);
    
if(
GetAdminFlag(adminIDADMFLAG_RESERVATIONAccess_Real) == true)
{
    
PrintToChat(client" \x02[SM]\x01 You have acces to this command!");

This code is in OnClientPostAdminCheck(). I get tag mismatch error on if line.

I've used:

PHP Code:
if(IsClientInGame(client) && CheckCommandAccess(client"scolor"ADMFLAG_RESERVATIONfalse))
{


But that doesn't work either. I can use the command it doesn't says "you don't have permission to this command", but nothing happens too. It doesn't even prints a message.

Last edited by Synaesthesia; 11-19-2019 at 05:26.
Synaesthesia is offline