28.04.2010, 21:23
Hey there, new project i'm making (see in my sig)
I'm using Seif_'s Announcement thing, but i added a few more lines...but there are some problems,
error 032: array index out of bounds (variable "Announcements")
- That is the first error when i do this
and the other part
Thats the First Error
But when i change
to
It gives me this error:
error 052: multi-dimensional arrays must be fully initialized
And thats all i changed...Please Help.
I'm using Seif_'s Announcement thing, but i added a few more lines...but there are some problems,
error 032: array index out of bounds (variable "Announcements")
- That is the first error when i do this
pawn Код:
new Announcements[8][128] = { // Announcements[number of announcement messages][string lengh]
"Announcement: Visit Our Forums! Go to http://rayze-universe.tk",
"Announcement: Want to Stay with us? Add » 99.58.71.127:7777 « To your Favourites!",
"Announcement: Want to be a V.I.P Member? Pay only $10 and become V.I.P for life! (/vip)",
"Announcement: Want to know who is the developer of Party For Life! [P.F.R]? use /credits",
"Announcement: New to this server? Use /help or /commands. Also Please Register on our forums (/website)",
"Announcement: Want to be a Admin? Applicate on our forums, but Please Read our rules before doing so.",
"Announcement: Feel Free to invite your friends to Party For Life! We will have great thanks to you",
"Announcement: Do you have Ideas for this server? Go to our Ideas - Bugs - Complaints section and post!"
};
pawn Код:
public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {SendClientMessageToAll(ANNOUNCEMENT, Announcements[0]); Msg++;} // first message
case 1: {SendClientMessageToAll(ANNOUNCEMENT, Announcements[1]); Msg++;}
case 2: {SendClientMessageToAll(ANNOUNCEMENT, Announcements[2]); Msg++;}
case 3: {SendClientMessageToAll(ANNOUNCEMENT, Announcements[3]); Msg++;}
case 4: {SendClientMessageToAll(ANNOUNCEMENT, Announcements[4]); Msg++;}
case 5: {SendClientMessageToAll(ANNOUNCEMENT, Announcements[5]); Msg++;}
case 6: {SendClientMessageToAll(ANNOUNCEMENT, Announcements[6]); Msg++;}
case 7: {SendClientMessageToAll(ANNOUNCEMENT, Announcements[7]); Msg++;}
case 8: {SendClientMessageToAll(ANNOUNCEMENT, Announcements[8]); Msg = 0;} // last message
}
return 1;
}
But when i change
pawn Код:
new Announcements[8][128] = { // Announcements[number of announcement messages][string lengh]
pawn Код:
new Announcements[10][128] = { // Announcements[number of announcement messages][string lengh]
error 052: multi-dimensional arrays must be fully initialized
And thats all i changed...Please Help.