Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock InitComponents(componentid)
- {
- new i;
- for(i=0; i<20; i++)
- {
- if(spoiler[i][0] == componentid) return 0;
- }
- for(i=0; i<3; i++)
- {
- if(nitro[i][0] == componentid) { return 1; }
- }
- for(i=0; i<23; i++)
- {
- if(fbumper[i][0] == componentid) { return 2; }
- }
- for(i=0; i<22; i++)
- {
- if(rbumper[i][0] == componentid) { return 3; }
- }
- for(i=0; i<28; i++)
- {
- if(exhaust[i][0] == componentid) { return 4; }
- }
- for(i=0; i<2; i++)
- {
- if(bventr[i][0] == componentid) { return 5; }
- }
- for(i=0; i<2; i++)
- {
- if(bventl[i][0] == componentid) { return 6; }
- }
- for(i=0; i<4; i++)
- {
- if(bscoop[i][0] == componentid) { return 7; }
- }
- for(i=0; i<13; i++)
- {
- if(rscoop[i][0] == componentid) { return 8; }
- }
- for(i=0; i<21; i++)
- {
- if(lskirt[i][0] == componentid) { return 9; }
- }
- for(i=0; i<21; i++)
- {
- if(rskirt[i][0] == componentid) { return 10; }
- }
- if(hydraulics[0][0] == componentid) { return 11; }
- if(base[0][0] == componentid) { return 12; }
- for(i=0; i<2; i++)
- {
- if(rbbars[i][0] == componentid) { return 13; }
- }
- for(i=0; i<2; i++)
- {
- if(fbbars[i][0] == componentid) { return 14; }
- }
- for(i=0; i<17; i++)
- {
- if(wheels[i][0] == componentid) { return 15; }
- }
- for(i=0; i<2; i++)
- {
- if(lightss[i][0] == componentid) { return 16; }
- }
- return -1;
- }
- //Píše mi to nějaky chyby
- //něco takovýho
- //C:\Users\acer\Desktop\pw.pwn(7197) : error 017: undefined symbol "spoiler"
- //C:\Users\acer\Desktop\pw.pwn(7197) : warning 215: expression has no effect
- //C:\Users\acer\Desktop\pw.pwn(7197) : error 001: expected token: ";", but found "]"
- //C:\Users\acer\Desktop\pw.pwn(7197) : error 029: invalid expression, assumed zero
- //C:\Users\acer\Desktop\pw.pwn(7197) : fatal error 107: too many error messages on one line
- //Rád bych byl kdyby jste mi to upravily nebo poradíly! :-)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement