SA-MP Forums Archive
array must be fully... ? - 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: array must be fully... ? (/showthread.php?tid=294779)



array must be fully... ? - knackworst - 03.11.2011

Hi, I'm working with arrays for some time now and I strumbled on an error that I don't know how to fix...

Код:
C:\Users\William\Documents\New Stuntages\gamemodes\New_Stuntages.pwn(123) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
enum TypingContest
{
    cWord1[128],
    cWord2[128],
}

new cWords[21][TypingContest] =
{
    {"Fat", "Bear"},
    {"Big", "Car"},
    {"Lazy", "Dog"},
    {"Stupid", "Cow"},
    {"Funny", "Ice"},
    {"Lovely", "Human"},
    {"Interesting", "Baby"},
    {"Hilarious", "Server"},
    {"Ugly", "Fire"},
    {"Unbelieveable", "Gun"},
    {"Fighting", "Fish"},
    {"Racing", "Lion"},
    {"Stunting", "Bird"},
    {"Laughing", "Head"},
    {"Failing", "Leg"},
    {"Horny", "Weener"},
    {"Wanted", "Ass"},
    {"Hidden", "Video"},
    {"Dead", "Professor"}
}; //Error line
rep for helper...
Thanks in advance!


Re: array must be fully... ? - knackworst - 03.11.2011

uhoh, sorry for the stupid question, anyways it works, thank you