Zdravim lidi zakoupil jsem si mod Paradise World ale píše mě to tyto errory v pawnu jsem totální začátečník takže na to berte ohled
error 017: undefined symbol "spoiler" warning 215: expression has no effect error 001: expected token: ";", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line
Dotaz
Kortes 2
Zdravim lidi zakoupil jsem si mod Paradise World ale píše mě to tyto errory v pawnu jsem totální začátečník takže na to berte ohled
error 017: undefined symbol "spoiler"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Kod:
stock InitComponents(componentid)
{
new i;
for(i=0; i<20; i++)
{
if(spoiler[0] == componentid) return 0; }
}
for(i=0; i<3; i++)
{
if(nitro[0] == componentid) { return 1; }
}
for(i=0; i<23; i++)
{
if(fbumper[0] == componentid) { return 2; }
}
for(i=0; i<22; i++)
{
if(rbumper[0] == componentid) { return 3; }
}
for(i=0; i<28; i++)
{
if(exhaust[0] == componentid) { return 4; }
}
for(i=0; i<2; i++)
{
if(bventr[0] == componentid) { return 5; }
}
for(i=0; i<2; i++)
{
if(bventl[0] == componentid) { return 6; }
}
for(i=0; i<4; i++)
{
if(bscoop[0] == componentid) { return 7; }
}
for(i=0; i<13; i++)
{
if(rscoop[0] == componentid) { return 8; }
}
for(i=0; i<21; i++)
{
if(lskirt[0] == componentid) { return 9; }
}
for(i=0; i<21; i++)
{
if(rskirt[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[0] == componentid) { return 13; }
}
for(i=0; i<2; i++)
{
if(fbbars[0] == componentid) { return 14; }
}
for(i=0; i<17; i++)
{
if(wheels[0] == componentid) { return 15; }
}
for(i=0; i<2; i++)
{
if(lightss[0] == componentid) { return 16; }
}
return -1;
}
Link to comment
Share on other sites
13 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now