[Ajuda] Sistema de Boletim de Ocorrкncia dando erros
#8

Digao,eu editei o comando pra colocar no meu sv,mas ta sem o log,como que ficaria com o log.(Atй agora testei e ta funfano perfeito).
pawn Код:
if(strcmp(cmd, "/boletimocorrencia", true) == 0 || strcmp(cmd, "/bo", true) == 0)
    {
        if (!PlayerToPoint(3.0, playerid, 250.0496,67.6644,1003.6406) && !PlayerToPoint(3.0, playerid, 246.5846,118.5371,1003.2188) && !PlayerToPoint(3.0, playerid, 325.2144,305.1604,999.1484) && !PlayerToPoint(3.0, playerid, 1522.1292,492.1497,7.1797) && !PlayerToPoint(3.0, playerid, 234.9493,165.6879,1003.0300) && !PlayerToPoint(3.0, playerid, 699.6252,-553.2016,-3.5950))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo estб na recepзгo de nenhuma DP.");
            return true;
        }
        else
        {
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /bo [Breve Descriзгo] [Contato]");
                return 1;
            }
            if(IsACop(playerid) && (OnDuty[playerid]) )
            {
                format(string, sizeof(string), "B.o. de: %s(%d): %s.", PlayerName(playerid), playerid, (result));
                ABroadCast(0xFFFF66FF,string,1);
            }
            SendClientMessage(playerid, COLOR_YELLOW, "Seu Boletim de ocorrencia foi enviado aos policiais de plantгo.");
        }
        return 1;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)