Guten Abend,
Ich bekomme 4 Errors aber warum hir der Code:
GetModType(componentid)
{
new i;
for(i=0; i<20; i++)
{
if(spoiler[i][0]==componentid){ return 1; }
}
for(i=0; i<3; i++)
{
if(nitro[i][0]==componentid){ return 2; }
}
for(i=0; i<17; i++)
{
if(wheels[i][0]==componentid){ return 3; }
}
for(i=0; i<2; i++)
{
if(lights[i][0]==componentid){ return 4; }
}
return 0;
}
new wheels[17][0] = {
{1025},{1073},{1074},
{1075},{1076},{1077},
{1078},{1079},{1080},
{1081},{1082},{1083},
{1084},{1085},{1096},
{1097},{1098}
};
{
new i;
for(i=0; i<20; i++)
{
if(spoiler[i][0]==componentid){ return 1; }
}
for(i=0; i<3; i++)
{
if(nitro[i][0]==componentid){ return 2; }
}
for(i=0; i<17; i++)
{
if(wheels[i][0]==componentid){ return 3; }
}
for(i=0; i<2; i++)
{
if(lights[i][0]==componentid){ return 4; }
}
return 0;
}
new wheels[17][0] = {
{1025},{1073},{1074},
{1075},{1076},{1077},
{1078},{1079},{1080},
{1081},{1082},{1083},
{1084},{1085},{1096},
{1097},{1098}
};
new spoiler[20][0] = {
{1000},{1001},{1002},
{1003},{1014},{1015},
{1016},{1023},{1058},
{1060},{1049},{1050},
{1138},{1139},{1146},
{1147},{1158},{1162},
{1163},{1164}
};
{1000},{1001},{1002},
{1003},{1014},{1015},
{1016},{1023},{1058},
{1060},{1049},{1050},
{1138},{1139},{1146},
{1147},{1158},{1162},
{1163},{1164}
};
new nitro[3][0] = {
{1008},{1009},{1010}
};
new lights[2][0] = {
{1013},{1024}
};
{1008},{1009},{1010}
};
new lights[2][0] = {
{1013},{1024}
};
ihr die errors:
SQL
C:\Users\Fabian\Desktop\Mein Deaht Match Server - Kopie\gamemodes\mysqlautohaus.pwn(643) : error 017: undefined symbol "spoiler"C:\Users\Fabian\Desktop\Mein Deaht Match Server - Kopie\gamemodes\mysqlautohaus.pwn(647) : error 017: undefined symbol "nitro"C:\Users\Fabian\Desktop\Mein Deaht Match Server - Kopie\gamemodes\mysqlautohaus.pwn(651) : error 017: undefined symbol "wheels"C:\Users\Fabian\Desktop\Mein Deaht Match Server - Kopie\gamemodes\mysqlautohaus.pwn(655) : error 017: undefined symbol "lights"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase4 Errors.
Dank im vorraus
mfg. Fabi.StaR
//CLOSE hab es erraus gefunden