SA-MP Forums Archive
Quck help - 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: Quck help (/showthread.php?tid=511784)



Quck help - GrOobY - 07.05.2014

Hello what is wrong here

new TeamNames[6][15] =
{
"Pa Ekip",
"Grove Street",
"Ballas",
"Vatos Locos",
"Loz Aztecaz"
};


C:\Users\Digital\Documents\samp\gamemodes\fgm.pwn( 26) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

line 26 its };

Thanks for help


Re: Quck help - Konstantinos - 07.05.2014

You've set the size to 6 but you only have initialized 5 of them. You can use them without size:
pawn Код:
new TeamNames[][] =
{
    "Pa Ekip",
    "Grove Street",
    "Ballas",
    "Vatos Locos",
    "Loz Aztecaz"
};