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

tenta assim..

pawn Код:
if(strcmp(cmd, "/boletimocorrencia", true) == 0 || strcmp(cmd, "/bo", true) == 0)
    {
        if (!PlayerToPoint(3.0, playerid, 253.9280,69.6094,1003.6406) && !PlayerToPoint(3.0, playerid, 259.2474,120.3977,1003.2188) && !PlayerToPoint(3.0, playerid, 198.9671,168.1982,1003.0234) && !PlayerToPoint(3.0, playerid, 234.8419,111.2194,1003.2257) && !PlayerToPoint(3.0, playerid, 326.8282,304.4166,999.1484) && !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: /crime [Breve Descriзгo]");
                return 1;
            }
            if(IsACop(playerid))
            {
                format(string, sizeof(string), "--> Boletim de Ocorrкncia de %s(%d): %s -->", PlayerName(playerid), playerid, (result));
                ABroadCast(0xFFFF66FF,string,1);
                SendClientMessage(playerid, COLOR_YELLOW, "Seu relatуrio foi enviado com sucesso aos COPs, aguarde por uma resposta...");
            }
        }
        return 1;
    }
xau ;*
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)