error 047: array sizes do not match, or destination array is too small
#1

Well, as the title says. I always have that error.

Код:
C:\Users\JohnMark\Desktop\FGRP NO MYSQL\gamemodes\SSRP.pwn(4000) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
C:\Users\JohnMark\Desktop\FGRP NO MYSQL\gamemodes\SSRP.pwn(12321) : warning 217: loose indentation
C:\Users\JohnMark\Desktop\FGRP NO MYSQL\gamemodes\SSRP.pwn(20500) : warning 213: tag mismatch
C:\Users\JohnMark\Desktop\FGRP NO MYSQL\gamemodes\SSRP.pwn(38547) : warning 217: loose indentation
C:\Users\JohnMark\Desktop\FGRP NO MYSQL\gamemodes\SSRP.pwn(42311) : warning 204: symbol is assigned a value that is never used: "string"
C:\Users\JohnMark\Desktop\FGRP NO MYSQL\gamemodes\SSRP.pwn(50361) : warning 217: loose indentation
C:\Users\JohnMark\Desktop\FGRP NO MYSQL\gamemodes\SSRP.pwn(53750) : error 047: array sizes do not match, or destination array is too small
C:\Users\JohnMark\Desktop\FGRP NO MYSQL\gamemodes\SSRP.pwn(68089) : error 047: array sizes do not match, or destination array is too small
C:\Users\JohnMark\Desktop\FGRP NO MYSQL\gamemodes\SSRP.pwn(73958) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
The Code:
Код:
			employer = "San Andreas National Guard";
			switch(PlayerInfo[playerid][pRank])
			{
				case 0: rank= "Private";
				case 1: rank = "Corporal";
				case 2: rank = "Sergeant";
				case 3: rank = "Lieutenant";
				case 4: rank = "Captain";
				case 5: rank = "Major";
				case 6: rank = "General";
				default: rank = "Private";
			}
			switch(PlayerInfo[playerid][pDivision])
			{
				case 1: division = "(G.D.) ";
			    case 2: division = "(ARM) ";
			    case 3: division = "(AIR) ";
			    case 4: division = "(CMD) ";
			    case 5: division = "(F.T.O.) ";
			    default: division = "(G.D.) ";
			}
		}
The Second error code:
Код:
CMD:profile(playerid, params[])
{
	if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
	{
		new string[128], giveplayerid;
		if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /profile [playerid]");

		if(IsPlayerConnected(giveplayerid))
		{
			new ftext[24];
			if(PlayerInfo[giveplayerid][pMember] == 1 || PlayerInfo[giveplayerid][pLeader] == 1)
			{ ftext = "LSPD"; }
			else if(PlayerInfo[giveplayerid][pMember] == 2 || PlayerInfo[giveplayerid][pLeader] == 2)
			{ ftext = "FBI"; }
			else if(PlayerInfo[giveplayerid][pMember] == 4 || PlayerInfo[giveplayerid][pLeader] == 4)
			{ ftext = "FDSA"; }
			else if(PlayerInfo[giveplayerid][pMember] == 6 || PlayerInfo[giveplayerid][pLeader] == 6)
			{ ftext = "The Government"; }
			else if(PlayerInfo[giveplayerid][pMember] == 7 || PlayerInfo[giveplayerid][pLeader] == 7)
			{ ftext = "SASD"; }
			else if(PlayerInfo[giveplayerid][pMember] == 8 || PlayerInfo[giveplayerid][pLeader] == 8)
			{ ftext = "Hitman Agency"; }
			else if(PlayerInfo[giveplayerid][pMember] == 9 || PlayerInfo[giveplayerid][pLeader] == 9)
			{ ftext = "SA News"; }
			else if(PlayerInfo[giveplayerid][pMember] == 10 || PlayerInfo[giveplayerid][pLeader] == 10)
			{ ftext = "Taxi Faction"; }
			else if(PlayerInfo[giveplayerid][pMember] == 11 || PlayerInfo[giveplayerid][pLeader] == 11)
			{ ftext = "San Andreas National Guard"; }
PLEASE HELP ME! THANK YOU!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)