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

Quote:
Originally Posted by HumildadeForevis
Посмотреть сообщение
Galera me ajudem, eu passei um FS de Admin meu todo pra dentro do GM
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);
            }
        }
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)