Error: error 018: initialization data exceeds declared size
Code #1:
new Gangcars[21][3] ={
// Name, Fahrzeug-ID, Preis
{"Voodoo",412,30000}, {"Esperanto",419,30000}, {"Stallion",439,50000}, {"Glendale",466,30000},
{"Hermes",474,30000}, {"Sabre",475,45000}, {"Buccaner",518,25000}, {"Feltzer",533,60000},
{"Remington",534,35000}, {"Elegy",562,70000}, {"Savanna",567,30000}, {"Broadway",575,25000},
{"Tornado",576,45000}, {"Huntley",579,50000}, {"Picador",600,20000}, {"Jester",559,55000},
{"Perenniel",404,25000}, {"Sentinel",405,45000}, {"Bravura",401,20000}, {"Sanchez",468,50000}, {"PCJ-600",461,50000} };
Codeschnipsel #2:
if(frakid == 13 frakid == 14|| frakid == 16 frakid == 17 frakid == 19) // GS, Ballas, Vagos, Scarfo, WCC
{
new Dialog[8192], listitems[21][256];
for(new i; i < 21; i++)
{
format(listitems,256,"%s [%d]\n",Gangcars[0],Gangcars[2]);
SendClientMessage(playerid,-1,listitems);
}
}
Problem: Es liegt an Codeschnipsel 2 (Beim Auskommentieren dieses Codes bekam ich keine Errors). Ich habe bei for(new das Maximum auch auf 5 gesetzt und compilet, es geht trotzdem nicht.
PS: Sorry, wenn ich einen PWN-Code mache, rutscht alles in 1 Zeile