Cmds not working
#1

i use the cmd ingame it says i am not admin here is it;
pawn Код:
if(strcmp(cmd, "/reloadhouses", true) == 0)
    {
        if(PInfo[playerid][AdminLevel] == 5)
        {
            for(new i=0;i<MAX_HOUSES;i++)
            {
                ReloadHouse(i);
            }
            SendClientMessage(playerid, COLOR_WHITE, "You have reloaded all houses.");
            AdminLog(playerid, "/reloadhouses", "Reloaded Houses", "Houses");
            return 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_ERROR, "You are not an administrator !");
            return 1;
        }
    }
i Removed This part maybe that will make it work but it didn't
pawn Код:
if(strcmp(cmd, "/reloadhouses", true) == 0)
    {
        if(PInfo[playerid][AdminLevel] == 2)
        {
            for(new i=0;i<MAX_HOUSES;i++)
            {
                ReloadHouse(i);
            }
            SendClientMessage(playerid, COLOR_WHITE, "You have reloaded all houses.");
            AdminLog(playerid, "/reloadhouses", "Reloaded Houses", "Houses");
            return 1;
            }
    }
What did i do wrong?
Reply


Messages In This Thread
Cmds not working - by Geeboi_Mehdi - 18.02.2013, 15:37
Re: Cmds not working - by YesYesYes - 18.02.2013, 15:43
Re: Cmds not working - by Geeboi_Mehdi - 18.02.2013, 15:49
Re: Cmds not working - by Blast3r - 18.02.2013, 15:54
Re: Cmds not working - by Geeboi_Mehdi - 18.02.2013, 16:22
Re: Cmds not working - by Blast3r - 18.02.2013, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)