SA-MP Forums Archive
STUPID arrays messing up yetagain! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: STUPID arrays messing up yetagain! (/showthread.php?tid=63746)



STUPID arrays messing up yetagain! - DMSOrg - 31.01.2009

here\'s my problem. stupid pawno. it sucks. it\'s taking code that is perfectly fine and messing it up. here\'s the error:

Quote:

[censored gm-i aint showin anyone yet].pwn(1092) : error 052: multi-dimensional arrays must be fully initialize
d

here\'s the code:
Quote:

new JoinPed[30][1] = {
{280},
{281},
{71},
{250},
{95},
{98},
{205},
{209},
{70},
{176},
{177},
{13},
{7},
{47},
{55},
{56},
{36},
{37},
{38},
{42},
{44},
{59},
{60},
{76},
{150},
{41},
{233},
{187},
{229} };

please help me fix this problem...


Re: STUPID arrays messing up yetagain! - Auto-Sized - 31.01.2009

I count 29.


Re: STUPID arrays messing up yetagain! - Donny_k - 31.01.2009

Quote:
Originally Posted by DMSOrg
here\'s my problem. stupid pawno. it sucks. it\'s taking code that is perfectly fine and messing it up. here\'s the error:

[censored gm-i aint showin anyone yet].pwn(1092) : error 052: multi-dimensional arrays must be fully initialize
How does it suck, it\'s telling you the error, the line, what more do you want ?

You should of wrote:

Quote:

i\'m compiling code that is broken and the compiler is letting me know about it. here\'s the error:




Re: STUPID arrays messing up yetagain! - [WS]Hyper - 31.01.2009

Quote:
Originally Posted by DMSOrg
here\'s the code:
Quote:

new JoinPed[30][1] = {
{280},
{281},
{71},
{250},
{95},
{98},
{205},
{209},
{70},
{176},
{177},
{13},
{7},
{47},
{55},
{56},
{36},
{37},
{38},
{42},
{44},
{59},
{60},
{76},
{150},
{41},
{233},
{187},
{229} };

Try new JoinPed[][1] = {
(without the 30)


Re: STUPID arrays messing up yetagain! - DMSOrg - 01.02.2009

Quote:
Originally Posted by pкzп§-р†µе
I count 29.
i\'m a dummy, cant count, thanks