[Ajuda] Passei FS pra dentro do GM e deu errors
#5

Quote:
Originally Posted by iDreak
Посмотреть сообщение
O FS й seu e vocк nгo sabe resolve o problema

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
    new bool: Msgs[MAX_PLAYERS];
    new cmd[256], tmp[256], string[256], MSG[128], idx, giveplayerid;
    cmd = strtok(cmdtext, idx);

    if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid)) return 1;
    iPlayerChatTime[playerid] = GetTickCount();
    //--- FS Admin
    for(new i=0; i < MAX_PLAYERS; i++)
    {
        //if(IsPlayerAdmin(i))
        if(IsPlayerAdmin(i) || IsAdmin[i] == 1)
        {
            if(Msgs[i] == false)// linha do erro <<<<<<<<
            {
                new nome[MAX_PLAYER_NAME];
                GetPlayerName(playerid, nome, sizeof(nome));
                format(string, sizeof(string), "[Admin] %s digitou o comando: %s", nome, cmdtext);
                SendClientMessage(i, 0xF5F5DCAA, string);
            }
        }
    }
Eu nгo fiz FS de admin, por isso uso o que o ukw1 fez, aquele do i7 - iSeven, agora decidir jogar ele dentro do GM
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)