Advertisement
GrankoPoRanu

Untitled

Jul 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. stock InitComponents(componentid)
  2. {
  3. new i;
  4. for(i=0; i<20; i++)
  5. {
  6. if(spoiler[i][0] == componentid) return 0;
  7. }
  8. for(i=0; i<3; i++)
  9. {
  10. if(nitro[i][0] == componentid) { return 1; }
  11. }
  12. for(i=0; i<23; i++)
  13. {
  14. if(fbumper[i][0] == componentid) { return 2; }
  15. }
  16. for(i=0; i<22; i++)
  17. {
  18. if(rbumper[i][0] == componentid) { return 3; }
  19. }
  20. for(i=0; i<28; i++)
  21. {
  22. if(exhaust[i][0] == componentid) { return 4; }
  23. }
  24. for(i=0; i<2; i++)
  25. {
  26. if(bventr[i][0] == componentid) { return 5; }
  27. }
  28. for(i=0; i<2; i++)
  29. {
  30. if(bventl[i][0] == componentid) { return 6; }
  31. }
  32. for(i=0; i<4; i++)
  33. {
  34. if(bscoop[i][0] == componentid) { return 7; }
  35. }
  36. for(i=0; i<13; i++)
  37. {
  38. if(rscoop[i][0] == componentid) { return 8; }
  39. }
  40. for(i=0; i<21; i++)
  41. {
  42. if(lskirt[i][0] == componentid) { return 9; }
  43. }
  44. for(i=0; i<21; i++)
  45. {
  46. if(rskirt[i][0] == componentid) { return 10; }
  47. }
  48. if(hydraulics[0][0] == componentid) { return 11; }
  49. if(base[0][0] == componentid) { return 12; }
  50. for(i=0; i<2; i++)
  51. {
  52. if(rbbars[i][0] == componentid) { return 13; }
  53. }
  54. for(i=0; i<2; i++)
  55. {
  56. if(fbbars[i][0] == componentid) { return 14; }
  57. }
  58. for(i=0; i<17; i++)
  59. {
  60. if(wheels[i][0] == componentid) { return 15; }
  61. }
  62. for(i=0; i<2; i++)
  63. {
  64. if(lightss[i][0] == componentid) { return 16; }
  65. }
  66. return -1;
  67. }
  68. //Píše mi to nějaky chyby
  69. //něco takovýho
  70. //C:\Users\acer\Desktop\pw.pwn(7197) : error 017: undefined symbol "spoiler"
  71. //C:\Users\acer\Desktop\pw.pwn(7197) : warning 215: expression has no effect
  72. //C:\Users\acer\Desktop\pw.pwn(7197) : error 001: expected token: ";", but found "]"
  73. //C:\Users\acer\Desktop\pw.pwn(7197) : error 029: invalid expression, assumed zero
  74. //C:\Users\acer\Desktop\pw.pwn(7197) : fatal error 107: too many error messages on one line
  75. //Rád bych byl kdyby jste mi to upravily nebo poradíly! :-)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement