Skip to content

Instantly share code, notes, and snippets.

@continue98
Created July 24, 2015 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save continue98/52791192b19be71d1fc1 to your computer and use it in GitHub Desktop.
Save continue98/52791192b19be71d1fc1 to your computer and use it in GitHub Desktop.
new invalid_car_model[] =
{
{ 417 }, { 425 }, { 430 },
{ 432 }, { 435 }, { 446 },
{ 447 }, { 449 }, { 450 },
{ 452 }, { 453 }, { 454 },
{ 460 }, { 464 }, { 465 },
{ 469 }, { 472 }, { 473 },
{ 476 }, { 484 }, { 488 },
{ 487 }, { 493 }, { 497 },
{ 501 }, { 511 }, { 512 },
{ 513 }, { 519 }, { 520 },
{ 537 }, { 538 }, { 548 },
{ 553 }, { 563 }, { 564 },
{ 569 }, { 570 }, { 577 },
{ 584 }, { 590 }, { 591 },
{ 592 }, { 593 }, { 594 },
{ 595 }, { 606 }, { 607 },
{ 608 }, { 610 }, { 611 }
};
new result = SearchValueInElemetsArray(invalid_car_model, params[0]);
if (result == -1)
return SendClientMessenge(playerid, -1, "Ошибка выбора модели авто....");
SearchValueInElemetsArray(array[], search_value, array_size = sizeof(array))
{
for (new n = 0; n < array_size; ++n)
if (array[n] == search_value)
return n;
return -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment