ich hab folgenden error
Zitaterror 008: must be a constant expression; assumed zero
und zwar zimlich oft die zeilen sind
#define ACC "acc/%s.datei"
public OnFilterScriptInit()
{
for(new ii=0; ii<MAX_PLAYERS; ii++)
{
new accFormat[128];
for(new cc=0; cc<MAX_AUTO; cc++)
{
new hatauto[128];
format(hatauto,sizeof hatauto,"AutoNr%d",cc);
if(strlen(dini_Get("autosystem.ini",hatauto)))
{
format(accFormat,sizeof accFormat,ACC,dini_Get("autosystem.ini",hatauto));
}
else
{
return 1;
}
}
new startAutoID[ii] = dini_Int(accFormat,"AutoID");
new startAutoFarbe1[ii] = dini_Int(accFormat,"AutoFarbe1");
new startAutoFarbe2[ii] = dini_Int(accFormat,"AutoFarbe2");
new startAutoX[ii] = dini_Int(accFormat,"AutoX");
new startAutoY[ii] = dini_Int(accFormat,"AutoY");
new startAutoZ[ii] = dini_Int(accFormat,"AutoZ");
new startAutoR[ii] = dini_Int(accFormat,"AutoR");
startAuto[ii] = AddStaticVehicle(startAutoID[ii],startAutoX[ii],startAutoY[ii],startAutoZ[ii],startAutoR[ii],startAutoFarbe1[ii],startAutoFarbe2[ii]);
blicke da nicht durch was falsch ist bitte helft mir
PS: frohe weinachten
EDIT: define vergessen
EDIT2: fehler gefind
new startAuto[MAX_PLAYERS];
new startAutoID[MAX_PLAYERS];
new startAutoFarbe1[MAX_PLAYERS];
new startAutoFarbe2[MAX_PLAYERS];
new Float:startAutoX[MAX_PLAYERS];
new Float:startAutoY[MAX_PLAYERS];
new Float:startAutoZ[MAX_PLAYERS];
new Float:startAutoR[MAX_PLAYERS];
//fehlte oben und unten die gantzen "new" dinger weg