-
-
Save continue98/52791192b19be71d1fc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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