01.06.2013, 21:04
Hey!
I have two warnings in my script, can someone help me?
1.
2.
I have two warnings in my script, can someone help me?
Код:
1. (103953) : warning 217: loose indentation 2. (104098) : warning 217: loose indentation
Код:
if(current == paintjobs_menu) <-------- (103953) : warning 217: loose indentation { switch(row) { case 0: { if(GetVehicleModel(install_mod_car[playerid]) == 562 || GetVehicleModel(install_mod_car[playerid]) == 565 || GetVehicleModel(install_mod_car[playerid]) == 559 || GetVehicleModel(install_mod_car[playerid]) == 561 || GetVehicleModel(install_mod_car[playerid]) == 560 || GetVehicleModel(install_mod_car[playerid]) == 575 || GetVehicleModel(install_mod_car[playerid]) == 534 || GetVehicleModel(install_mod_car[playerid]) == 567 || GetVehicleModel(install_mod_car[playerid]) == 536 || GetVehicleModel(install_mod_car[playerid]) == 535 || GetVehicleModel(install_mod_car[playerid]) == 576 || GetVehicleModel(install_mod_car[playerid]) == 558 || GetVehicleModel(install_mod_car[playerid]) == 483) { new car = install_mod_car[playerid]; SetVehiclePaintjob(car, 0); PlayerPlaySound(playerid, 1134, 0, 0, 0); ShowMenuForPlayer(paintjobs_menu, playerid); } else { SendClientMessage(playerid, GREY, "This vehicle doesn't support Paintjobs."); ShowMenuForPlayer(tuning_menu, playerid); } } case 1: { if(GetVehicleModel(install_mod_car[playerid]) == 562 || GetVehicleModel(install_mod_car[playerid]) == 565 || GetVehicleModel(install_mod_car[playerid]) == 559 || GetVehicleModel(install_mod_car[playerid]) == 561 || GetVehicleModel(install_mod_car[playerid]) == 560 || GetVehicleModel(install_mod_car[playerid]) == 575 || GetVehicleModel(install_mod_car[playerid]) == 534 || GetVehicleModel(install_mod_car[playerid]) == 567 || GetVehicleModel(install_mod_car[playerid]) == 536 || GetVehicleModel(install_mod_car[playerid]) == 535 || GetVehicleModel(install_mod_car[playerid]) == 576 || GetVehicleModel(install_mod_car[playerid]) == 558 || GetVehicleModel(install_mod_car[playerid]) == 483) { new car = install_mod_car[playerid]; SetVehiclePaintjob(car, 1); PlayerPlaySound(playerid, 1134, 0, 0, 0); ShowMenuForPlayer(paintjobs_menu, playerid); } else { SendClientMessage(playerid, GREY, "This vehicle doesn't support Paintjobs."); ShowMenuForPlayer(tuning_menu, playerid); } } case 2: { if(GetVehicleModel(install_mod_car[playerid]) == 562 || GetVehicleModel(install_mod_car[playerid]) == 565 || GetVehicleModel(install_mod_car[playerid]) == 559 || GetVehicleModel(install_mod_car[playerid]) == 561 || GetVehicleModel(install_mod_car[playerid]) == 560 || GetVehicleModel(install_mod_car[playerid]) == 575 || GetVehicleModel(install_mod_car[playerid]) == 534 || GetVehicleModel(install_mod_car[playerid]) == 567 || GetVehicleModel(install_mod_car[playerid]) == 536 || GetVehicleModel(install_mod_car[playerid]) == 535 || GetVehicleModel(install_mod_car[playerid]) == 576 || GetVehicleModel(install_mod_car[playerid]) == 558 || GetVehicleModel(install_mod_car[playerid]) == 483) { new car = install_mod_car[playerid]; SetVehiclePaintjob(car, 2); PlayerPlaySound(playerid, 1134, 0, 0, 0); ShowMenuForPlayer(paintjobs_menu, playerid); } else { SendClientMessage(playerid, GREY, "This vehicle doesn't support Paintjobs."); ShowMenuForPlayer(tuning_menu, playerid); } } case 3: { if(GetVehicleModel(install_mod_car[playerid]) == 562 || GetVehicleModel(install_mod_car[playerid]) == 565 || GetVehicleModel(install_mod_car[playerid]) == 559 || GetVehicleModel(install_mod_car[playerid]) == 561 || GetVehicleModel(install_mod_car[playerid]) == 560 || GetVehicleModel(install_mod_car[playerid]) == 575 || GetVehicleModel(install_mod_car[playerid]) == 534 || GetVehicleModel(install_mod_car[playerid]) == 567 || GetVehicleModel(install_mod_car[playerid]) == 536 || GetVehicleModel(install_mod_car[playerid]) == 535 || GetVehicleModel(install_mod_car[playerid]) == 576 || GetVehicleModel(install_mod_car[playerid]) == 558 || GetVehicleModel(install_mod_car[playerid]) == 483) { new car = install_mod_car[playerid]; SetVehiclePaintjob(car, 3); PlayerPlaySound(playerid, 1134, 0, 0, 0); ShowMenuForPlayer(paintjobs_menu, playerid); } else { SendClientMessage(playerid, GREY, "This vehicle doesn't support Paintjobs."); ShowMenuForPlayer(tuning_menu, playerid); } } case 4: { if(GetVehicleModel(install_mod_car[playerid]) == 562 || GetVehicleModel(install_mod_car[playerid]) == 565 || GetVehicleModel(install_mod_car[playerid]) == 559 || GetVehicleModel(install_mod_car[playerid]) == 561 || GetVehicleModel(install_mod_car[playerid]) == 560 || GetVehicleModel(install_mod_car[playerid]) == 575 || GetVehicleModel(install_mod_car[playerid]) == 534 || GetVehicleModel(install_mod_car[playerid]) == 567 || GetVehicleModel(install_mod_car[playerid]) == 536 || GetVehicleModel(install_mod_car[playerid]) == 535 || GetVehicleModel(install_mod_car[playerid]) == 576 || GetVehicleModel(install_mod_car[playerid]) == 558 || GetVehicleModel(install_mod_car[playerid]) == 483) { new car = install_mod_car[playerid]; SetVehiclePaintjob(car, 4); PlayerPlaySound(playerid, 1134, 0, 0, 0); ShowMenuForPlayer(paintjobs_menu, playerid); } else { SendClientMessage(playerid, GREY, "This vehicle doesn't support Paintjobs."); ShowMenuForPlayer(tuning_menu, playerid); } } case 5: { ShowMenuForPlayer(tuning_menu, playerid); } } }
Код:
if(current == exhausts_menu) <--------- (104098) : warning 217: loose indentation { switch(row) { case 0: { if(GetVehicleModel(install_mod_car[playerid]) == 562 || GetVehicleModel(install_mod_car[playerid]) == 565 || GetVehicleModel(install_mod_car[playerid]) == 559 || GetVehicleModel(install_mod_car[playerid]) == 561 || GetVehicleModel(install_mod_car[playerid]) == 560 || GetVehicleModel(install_mod_car[playerid]) == 558) { new car = install_mod_car[playerid]; if(GetVehicleModel(install_mod_car[playerid]) == 562) { AddComponentToVehicle(car, 1034); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 565) { AddComponentToVehicle(car,1046); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 559) { AddComponentToVehicle(car,1065); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 561) { AddComponentToVehicle(car,1064); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 560) { AddComponentToVehicle(car,1028); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 558) { AddComponentToVehicle(car,1089); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } } else { SendClientMessage(playerid, GREY, "This vehicle doesn't support this type of Exhaust."); ShowMenuForPlayer(tuning_menu, playerid); } } case 1: { if(GetVehicleModel(install_mod_car[playerid]) == 562 || GetVehicleModel(install_mod_car[playerid]) == 565 || GetVehicleModel(install_mod_car[playerid]) == 559 || GetVehicleModel(install_mod_car[playerid]) == 561 || GetVehicleModel(install_mod_car[playerid]) == 560 || GetVehicleModel(install_mod_car[playerid]) == 558) { new car = install_mod_car[playerid]; if(GetVehicleModel(install_mod_car[playerid]) == 562) { AddComponentToVehicle(car, 1037); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 565) { AddComponentToVehicle(car,1045); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 559) { AddComponentToVehicle(car,1066); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 561) { AddComponentToVehicle(car,1059); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 560) { AddComponentToVehicle(car,1029); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 558) { AddComponentToVehicle(car,1092); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } } else { SendClientMessage(playerid, GREY, "This vehicle doesn't support this type of Exhaust."); ShowMenuForPlayer(tuning_menu, playerid); } } case 2: { if(GetVehicleModel(install_mod_car[playerid]) == 575 || GetVehicleModel(install_mod_car[playerid]) == 534 || GetVehicleModel(install_mod_car[playerid]) == 567 || GetVehicleModel(install_mod_car[playerid]) == 536 || GetVehicleModel(install_mod_car[playerid]) == 576 || GetVehicleModel(install_mod_car[playerid]) == 535) { new car = install_mod_car[playerid]; if(GetVehicleModel(install_mod_car[playerid]) == 575) { AddComponentToVehicle(car,1044); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 534) { AddComponentToVehicle(car,1126); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 567) { AddComponentToVehicle(car,1129); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 536) { AddComponentToVehicle(car,1104); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 535) { AddComponentToVehicle(car,1113); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 576) { AddComponentToVehicle(car,1136); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } } else { SendClientMessage(playerid, GREY, "This vehicle doesn't support this type of Exhaust."); ShowMenuForPlayer(tuning_menu, playerid); } } case 3: { if(GetVehicleModel(install_mod_car[playerid]) == 575 || GetVehicleModel(install_mod_car[playerid]) == 534 || GetVehicleModel(install_mod_car[playerid]) == 567 || GetVehicleModel(install_mod_car[playerid]) == 536 || GetVehicleModel(install_mod_car[playerid]) == 576 || GetVehicleModel(install_mod_car[playerid]) == 535) { new car = install_mod_car[playerid]; if(GetVehicleModel(install_mod_car[playerid]) == 575) { AddComponentToVehicle(car,1043); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 534) { AddComponentToVehicle(car,1127); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 567) { AddComponentToVehicle(car,1132); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 536) { AddComponentToVehicle(car,1105); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 535) { AddComponentToVehicle(car,1114); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } else if(GetVehicleModel(install_mod_car[playerid]) == 576) { AddComponentToVehicle(car,1135); PlayerPlaySound(playerid, 1133, 0, 0, 0); ShowMenuForPlayer(exhausts_menu, playerid); } } else { SendClientMessage(playerid, GREY, "This vehicle doesn't support this type of Exhaust."); ShowMenuForPlayer(tuning_menu, playerid); } } case 4: ShowMenuForPlayer(tuning_menu, playerid); } }