[ajuda]funзгo do carro invalido
#1

ajudem ai pessoal, eu nгo estou a conseguir fazer a funзгo, nгo dб erros, mas nгo funciona
pawn Код:
//...
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GREY, "[USO:] /car buy [car id]");
                    return 1;
                }
                new amodel;
            amodel = strval(tmp);
                if(IsInvalidCar(playerid) == strval(tmp))
            {
                    SendClientMessage(playerid, COLOR_GRAD2, "Carro Invбlido!");
                    return 1;
            }//...

stock IsInvalidCar(Carid)
{
  #define   MAX_BAD_CARS 83
  new BadCars[MAX_BAD_CARS] =
  {
        611, 610, 608, 607, 606, 601, 599, 598, 597,
        596, 594, 592, 591, 590, 588, 584, 582, 583,
        577, 574, 573, 572, 570, 564, 563, 557, 556,
        553, 553, 548, 544, 538, 537, 532, 530, 525,
        524, 523, 520, 509, 504, 503, 502, 501, 499,
        497, 495, 494, 490, 488, 486, 486, 581, 569,
        564, 457, 456, 450, 449, 448, 447, 444, 443,
        441, 438, 437, 435, 433, 432, 431, 430, 428,
        427, 425, 423, 420, 417, 416, 414, 408, 407,
        406, 403
  };
  #undef MAX_BAD_CARS
  #pragma unused Carid
  #pragma unused BadCars
  return 1;
}
Reply


Messages In This Thread
[ajuda]funзгo do carro invalido - by tshadow - 15.06.2010, 10:41
Re: [ajuda]funзгo do carro invalido - by tshadow - 17.06.2010, 11:17
Re: [ajuda]funзгo do carro invalido - by ipsBruno - 17.06.2010, 14:56
Re: [ajuda]funзгo do carro invalido - by tshadow - 17.06.2010, 15:32
Re: [ajuda]funзгo do carro invalido - by tshadow - 18.06.2010, 11:33

Forum Jump:


Users browsing this thread: 1 Guest(s)