[Ajuda] Oque ta errado
#1

pawn Код:
if(strcmp(cmd, "/cveh", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(CreatedCar >= 96)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Jб criaram muitos carros, destrua alguns primeiro /destruirid");
                return 1;
            }
            new string[128];
            new idx = 0;
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /cveh [IDCARRO] [COR1] [COR2]");
                return 1;
            }
            new car;
            car = strval(tmp);
            if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "   Modelo Do Carro Tem Que Ser Entre 411 e 600 !"); return 1; }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /cveh [IDCARRO] [COR1] [COR2]");
                return 1;
            }
            new COLOR1;
            COLOR1 = strval(tmp);
            if(COLOR1 < 0 || COLOR1 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Nъmero Da Cor tem que ser entre 0 e 126 !"); return 1; }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /cveh [IDCARRO] [COR1] [COR2]");
                return 1;
            }
            new COLOR2;
            COLOR2 = strval(tmp);
            if(COLOR2 < 0 || COLOR2 > 126) { SendClientMessage(playerid, COLOR_GREY, "   Nъmero Da Cor tem que ser entre 0 e 126 !"); return 1; }
            new Float:X,Float:Y,Float:Z;
            GetPlayerPos(playerid, X,Y,Z);
            new carid = CreateVehicle(car, X,Y,Z, 0.0, COLOR1, COLOR2, 60000);
            CreatedCars[CreatedCar] = carid;
            CreatedCar ++;
            format(string, sizeof(string), "   Veiculo %d Criado.", carid);
            SendClientMessage(playerid, COLOR_GREY, string);
        }
        return 1;
    }
obs compila normal
mais quando coloco pra criar o carro ele aparece
q o modelo temq ser 411 a 610
Reply
#2

Pergunta desnecessбria mas... Vocк usou o /cveh com o ID de um veнculo entre 400 e 611? Exemplo:
/cveh 411 1 1
E ainda assim lhe retorna a mensagem?
Reply
#3

tipo eu dei /cveh 522 25 36
e retorna a msg
obs : me indica um fs de criar carro ingame
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)