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

Quote:
Originally Posted by AroseKhanNiazi
Посмотреть сообщение
PHP код:
SetPlayerLevelName(playerid

    
strdel(PlayerInfo[playerid][pLevelName],0,128);
    switch(
PlayerInfo[playerid][pLevel]) 
    { 
        case 
1strins(PlayerInfo[playerid][pLevelName],"Private I",0,128); 
        case 
2strins(PlayerInfo[playerid][pLevelName],"Private II",0,128); 
        case 
3strins(PlayerInfo[playerid][pLevelName],"Private III",0,128); 
        case 
4strins(PlayerInfo[playerid][pLevelName],"Private First Class",0,128); 
        case 
5strins(PlayerInfo[playerid][pLevelName],"Specialist",0,128); 
        case 
6strins(PlayerInfo[playerid][pLevelName],"Corporal",0,128); 
        case 
7strins(PlayerInfo[playerid][pLevelName],"Sergeant",0,128); 
        case 
8strins(PlayerInfo[playerid][pLevelName],"Staff Sergeant",0,128); 
        case 
9strins(PlayerInfo[playerid][pLevelName],"Sergeant First Class",0,128); 
        case 
10strins(PlayerInfo[playerid][pLevelName],"Master Sergeant",0,128); 
        case 
11strins(PlayerInfo[playerid][pLevelName],"First Sergeant",0,128); 
        case 
12strins(PlayerInfo[playerid][pLevelName],"Sergeant Major",0,128); 
        case 
13strins(PlayerInfo[playerid][pLevelName],"Command Sergeant Major",0,128); 
        case 
14strins(PlayerInfo[playerid][pLevelName],"Sergeant Major of the Army",0,128); 
        case 
15strins(PlayerInfo[playerid][pLevelName],"Warrant Officer",0,128); 
        case 
16strins(PlayerInfo[playerid][pLevelName],"Chief Warrant Officer II",0,128); 
        case 
17strins(PlayerInfo[playerid][pLevelName],"Chief Warrant Officer III",0,128); 
        case 
18strins(PlayerInfo[playerid][pLevelName],"Chief Warrant Officer IV",0,128); 
        case 
19strins(PlayerInfo[playerid][pLevelName],"Chief Warrant Officer V",0,128); 
        case 
20strins(PlayerInfo[playerid][pLevelName],"Second Lieutenant",0,128); 
        case 
21strins(PlayerInfo[playerid][pLevelName],"First Lieutenant",0,128); 
        case 
22strins(PlayerInfo[playerid][pLevelName],"Captain",0,128); 
        case 
23strins(PlayerInfo[playerid][pLevelName],"Major",0,128); 
        case 
24strins(PlayerInfo[playerid][pLevelName],"Lieutenant Colonel",0,128); 
        case 
25strins(PlayerInfo[playerid][pLevelName],"Colonel",0,128); 
        case 
26strins(PlayerInfo[playerid][pLevelName],"Brigadier General",0,128); 
        case 
27strins(PlayerInfo[playerid][pLevelName],"Major General",0,128); 
        case 
28strins(PlayerInfo[playerid][pLevelName],"Lieutenant General",0,128); 
        case 
29strins(PlayerInfo[playerid][pLevelName],"General",0,128); 
        case 
30strins(PlayerInfo[playerid][pLevelName],"General of the Army",0,128); 
    } 
    return 
1

It's not oddly after, as before adding this command you didn't use this function it was not called so those errors didn't pop up.
Thanks, that worked. Now I'm getting a bunch of errors with this:
Код:
stock GetPlayerTeamName(playerid);
{
	new team;
	team = GetPlayerTeam(playerid);
	if(team == TEAM_USA) return "United States";
	if(team == TEAM_CANADA) return "Canada";
	if(team == TEAM_BRITAIN) return "Britain";
	if(team == TEAM_AUSTRALIA) return "Australia";
	if(team == TEAM_RUSSIA) return "Russia";
	if(team == TEAM_GERMANY) return "Germany";
	if(team == TEAM_ITALY) return "Italy";
	if(team == TEAM_FRANCE) return "France";
	if(team == TEAM_CHINA) return "China";
	if(team == TEAM_INDIA) return "India";
}
(I see the semi-colon in the callback, if i remove it right now it crashes the PAWN compiler)

Код:
C:\Users\keega\OneDrive\Desktop\SAMP server\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(430) : warning 201: redefinition of constant/macro (symbol "isnull(%1)")
C:\Users\keega\OneDrive\Desktop\SAMP server\pawno\include\mGates.inc(346) : warning 213: tag mismatch
C:\Users\keega\OneDrive\Desktop\SAMP server\pawno\include\mGates.inc(378) : warning 213: tag mismatch
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(103) : warning 213: tag mismatch
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(104) : warning 213: tag mismatch
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(567) : error 004: function "GetPlayerTeamName" is not implemented
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(746) : warning 219: local variable "team" shadows a variable at a preceding level
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(843) : error 055: start of function body without function header
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(845) : error 010: invalid function or declaration
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(846) : error 010: invalid function or declaration
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(847) : error 010: invalid function or declaration
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(848) : error 010: invalid function or declaration
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(849) : error 010: invalid function or declaration
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(850) : error 010: invalid function or declaration
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(851) : error 010: invalid function or declaration
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(852) : error 010: invalid function or declaration
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(853) : error 010: invalid function or declaration
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(854) : error 010: invalid function or declaration
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(855) : error 010: invalid function or declaration
C:\Users\keega\OneDrive\Desktop\SAMP server\gamemodes\maude1.pwn(857) : warning 203: symbol is never used: "team"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


13 Errors.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)