28.10.2014, 22:19
Код:
C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(824) : error 018: initialization data exceeds declared size C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(836) : error 010: invalid function or declaration C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(848) : error 032: array index out of bounds (variable "Announce") C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(849) : error 032: array index out of bounds (variable "Announce") C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(850) : error 032: array index out of bounds (variable "Announce") C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(851) : error 032: array index out of bounds (variable "Announce") C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(852) : error 032: array index out of bounds (variable "Announce") C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(853) : error 032: array index out of bounds (variable "Announce") C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(854) : error 032: array index out of bounds (variable "Announce") C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(855) : error 032: array index out of bounds (variable "Announce") C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(856) : error 032: array index out of bounds (variable "Announce") C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(857) : error 032: array index out of bounds (variable "Announce") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 12 Errors.
pawn Код:
new Msgs;
new Announce[6][900] ={
""lblue"[SERVER]: "lwhite"Useful commands: "lorange"/help /phelp /cmds /credits /rules /admins",
""lblue"[SERVER]: "lwhite"Do you have a good idea for the server why not suggest it into our "lorange"Developers"lwhite", by Doing /suggest or posting it on forums.",
""lblue"[SERVER]: "lwhite"Always Obey "lorange"Player "lwhite"and "lorange"Administrators!",
""lblue"[SERVER]: "lwhite"Want to stay "lblue"Safe "lwhite"Read "lorange"/rules",
""lblue"[SERVER]: "lwhite"You don't need to worry your stats will be automatically Save!",
""lblue"[SERVER]: "lwhite"Want to contact your friend? use "lorange"/phone",
""lblue"[SERVER]: "lwhite"Want to use GPS [Global Positioning System], use "lorange"/gps",
""lblue"[SERVER]: "lwhite"This server includes Robbery System for Fun, so if you want use "lorange"/rob (player ID) "lwhite"Hope you enjoy!",
""lblue"[SERVER]: "lwhite"Wanna kill yourself because your wife get angry to you? do "lorange"/kill "lwhite"to see what's going to happen!",
""lblue"[SERVER]: "lwhite"Wanna see new Updates? Type "lorange"/cmds(/commands) "lwhite"and click The Update Button below General Commands!",
""lblue"[SERVER]: "lwhite"Want to report bug(s) use "lorange"/repbug",
""lblue"[SERVER]: "lwhite"We have inventory system for Gas can! so if you wanna Refill use "lorange"/inventory",
""lblue"[SERVER]: "lwhite"This server Includes Anti-Cheat, so if your too noob leave now before "lblue"TeamPRO "lwhite"kick your Ass!",
""lblue"[SERVER]: "lwhite"Want to change class? use "lorange"/reclass "lwhite"to force go in Class menu without pressing "lorange"F4!",
""lblue"[SERVER]: "lwhite"Want to call help? use "lorange"/sos "lwhite"to call assistance!",
""lblue"[SERVER]: "lwhite"Did you know that this server uses T-INI Beta 1 by TeamPRO",
""lyellow"QUOTE: "lwhite"Working hard is the best way to earn Money -TeamPRO"
};
forward GlobalAnnouncement();
public GlobalAnnouncement()
{
switch (Msgs)
{
case 0: {SendClientMessageToAll(yellow,Announce[0]); Msgs++;}
case 1: {SendClientMessageToAll(yellow,Announce[1]); Msgs++;}
case 2: {SendClientMessageToAll(yellow,Announce[2]); Msgs++;}
case 3: {SendClientMessageToAll(yellow,Announce[3]); Msgs++;}
case 4: {SendClientMessageToAll(yellow,Announce[4]); Msgs++;}
case 6: {SendClientMessageToAll(yellow,Announce[5]); Msgs++;}
case 7: {SendClientMessageToAll(yellow,Announce[6]); Msgs++;}
case 8: {SendClientMessageToAll(yellow,Announce[7]); Msgs++;}
case 9: {SendClientMessageToAll(yellow,Announce[8]); Msgs++;}
case 10: {SendClientMessageToAll(yellow,Announce[9]); Msgs++;}
case 11: {SendClientMessageToAll(yellow,Announce[10]); Msgs++;}
case 12: {SendClientMessageToAll(yellow,Announce[11]); Msgs++;}
case 13: {SendClientMessageToAll(yellow,Announce[12]); Msgs++;}
case 14: {SendClientMessageToAll(yellow,Announce[13]); Msgs++;}
case 15: {SendClientMessageToAll(yellow,Announce[14]); Msgs++;}
case 16: {SendClientMessageToAll(yellow,Announce[15]); Msgs = 0;}
}
return 1;
}