AdminChat bug?
#3

Quote:
Originally Posted by MrDeGekkerd
I am trying to find the bug, but I can't:

pawn Код:
if(!strcmp(cmdtext, "//", true, 2)) // Admin chat
    {
        if (UserInfo[playerid][AdminLevel] >= 1 || IsPlayerAdmin(playerid))
        {
          if(!strlen(cmdtext[2])) return SendClientMessage(playerid, PINK, "USAGE: // <text>");
            GetPlayerName(playerid, sendername, sizeof(sendername));
          format(string, sizeof(string), "Admin %s(%d): %s" ,sendername,playerid, cmdtext[2]);
            SendClientMessageToAdmins(LIGHTYELLOW, string, 1);
            return 1;
        }
        else return SendClientMessage(playerid, PINK, "You are not an admin!");
    }
If I go ingame, and I type //test
it says: 'Admin name(id): //test' - instead of 'Admin name(id): test' - what is the problem?
Working normal on my serwer
Reply


Messages In This Thread
AdminChat bug? - by MastahServers - 01.06.2010, 20:14
Re: AdminChat bug? - by aircombat - 01.06.2010, 21:13
Re: AdminChat bug? - by Jefff - 01.06.2010, 21:39
Re: AdminChat bug? - by MastahServers - 02.06.2010, 13:48
Re: AdminChat bug? - by aircombat - 02.06.2010, 14:00
Re: AdminChat bug? - by Mechscape - 02.06.2010, 14:01
Re: AdminChat bug? - by MastahServers - 02.06.2010, 14:03
Re: AdminChat bug? - by Kurence - 02.06.2010, 14:04
Re: AdminChat bug? - by MastahServers - 02.06.2010, 14:05
Re: AdminChat bug? - by Correlli - 02.06.2010, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)