strfind,strdel [rep+]
#2

pawn Код:
if(strcmp(text,"#",true, 1) == 0)
    {
        if(PlayerInfo[playerid][pAdminLevel] >= 1)
        {
                GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
                switch(PlayerInfo[playerid][pAdminLevel])
                {
                    case 1: LevelName = "Moderator";
                    case 2: LevelName = "Administrator";
                    case 3: LevelName = "Senior Administrator";
                    case 4: LevelName = "Main Administrator";
                    case 5: LevelName = "Head Administrator";
                    case 6: LevelName = "Senior Head Administrator";
                    case 7: LevelName = "Trusted Administrator";
                    case 8: LevelName = "Owner";
                }
                strdel(text, 0, 1);
                format(string,sizeof(string),"[Admin Chat] %s %s: %s",LevelName,pname,text);
                SendClientMessageToAdmins(COLOR_BLUE,string);
        }
        else return 0;
        return 0;
    }
That's strdel for what you need. I don't know what you need strfind for.
Reply


Messages In This Thread
strfind,strdel [rep+] - by xMichaelx - 08.12.2011, 00:14
Re: strfind,strdel [rep+] - by SuperViper - 08.12.2011, 00:29
Re: strfind,strdel [rep+] - by xMichaelx - 08.12.2011, 00:32

Forum Jump:


Users browsing this thread: 1 Guest(s)