SA-MP Forums Archive
Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error (/showthread.php?tid=287240)



Error - Stefans94 - 02.10.2011

Again another error.. i searched ****** but didn't find anything that could help me =s
pawn Код:
new Pickups2[2][2] = {
{"Binco", 1275},
{"Townhall", 1318}
};
Error: error 018: initialization data exceeds declared size


Re: Error - Pharrel - 02.10.2011

pawn Код:
new Pickups2[2][][2] = {
{"Binco", 1275},
{"Townhall", 1318}
};



Re: Error - Stefans94 - 02.10.2011

Quote:
Originally Posted by Pharrel
Посмотреть сообщение
pawn Код:
new Pickups2[2][][2] = {
{"Binco", 1275},
{"Townhall", 1318}
};
still doesn't work..


Re: Error - Zonoya - 02.10.2011

pawn Код:
new Pickups2[2] = {
{"Binco", 1275},
{"Townhall", 1318}
};



Re: Error - Pharrel - 02.10.2011

it works for me o_O did you put something after those lines :
pawn Код:
{"Binco", 1275},
{"Townhall", 1318}



Re: Error - =WoR=Varth - 02.10.2011

pawn Код:
new Pickups2[2][] = {
{"Binco", 1275},
{"Townhall", 1318}
};



Re: Error - Stefans94 - 02.10.2011

Quote:
Originally Posted by Pharrel
Посмотреть сообщение
it works for me o_O did you put something after those lines :
pawn Код:
{"Binco", 1275},
{"Townhall", 1318}
Doesn't work for me


Re: Error - Zonoya - 02.10.2011

try mine Stefans :
pawn Код:
new Pickups2[2] = {
{"Binco", 1275},
{"Townhall", 1318}
};



Re: Error - Pharrel - 02.10.2011

i know you already say that... but are you using just those 2 lines inside the

pawn Код:
new Pickups2....
//1 line
//2 lines
};
?

@edit Oh sure...

try that way:
pawn Код:
new Pickups2[][2] = {
{"Binco", 1275},
{"Townhall", 1318}
};
this might work!


Re: Error - Pharrel - 02.10.2011

aff srry the double post /\