comepile errors
#1

Код:
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(11772) : error 047: array sizes do not match, or destination array is too small
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(11772) : error 047: array sizes do not match, or destination array is too small
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17835) : warning 219: local variable "hours" shadows a variable at a preceding level
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17835) : warning 219: local variable "seconds" shadows a variable at a preceding level
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17837) : error 017: undefined symbol "pInfo"
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17837) : error 029: invalid expression, assumed zero
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17837) : error 029: invalid expression, assumed zero
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17837) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
help me guys ? and if it is include probelm so can anyone give me its link?
Reply
#2

Quote:
Originally Posted by Neom
Посмотреть сообщение
Код:
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(11772) : error 047: array sizes do not match, or destination array is too small
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(11772) : error 047: array sizes do not match, or destination array is too small
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17835) : warning 219: local variable "hours" shadows a variable at a preceding level
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17835) : warning 219: local variable "seconds" shadows a variable at a preceding level
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17837) : error 017: undefined symbol "pInfo"
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17837) : error 029: invalid expression, assumed zero
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17837) : error 029: invalid expression, assumed zero
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(17837) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
help me guys ? and if it is include probelm so can anyone give me its link?
It's your gamemode. Post your code here.
Reply
#3

Код:
stock ShowPlayerAchievements(playerid, targetid)
{
	new TempStr[611], complete[11], incomplete[11];
	complete = "{05E200}в€ў", incomplete = "{FF0000}в€ў";
	strcat(TempStr, "%s {FFFFFF}Loyal Soldier - Register on MW4! (Reward: 5 score)\n");
	strcat(TempStr, "%s {FFFFFF}First Blood   - Do your first kill! (Reward: 5 score)\n");
	strcat(TempStr, "%s {FFFFFF}Born Assassin - Do 100 kills! (Reward: none)\n");
	strcat(TempStr, "%s {FFFFFF}Terminator    - Make a killing spree of 10! (Reward: 10k$ and 10 score)\n");
	strcat(TempStr, "%s {FFFFFF}Eagle's Eye   - Headshot a player, from a distance more than 300 meters (Reward: 5 score)\n");
	strcat(TempStr, "%s {FFFFFF}Prototype     - Capture 10 prototypes! (Reward: 10 score)\n");
	strcat(TempStr, "%s (%i) has completed %i/6 achievements!\n\n");
	strcat(TempStr, "%s {FFFFFF}- Completed Achievement | %s {FFFFFF}- Incomplete Achievement");
	format(TempStr, sizeof TempStr, TempStr, (PlayerInfo[targetid][pRegAch] == 1) ? (complete) : (incomplete), (PlayerInfo[targetid][pKillAch] == 1) ? (complete) : (incomplete),
	(PlayerInfo[targetid][pAssAch] == 1) ? (complete) : (incomplete), (PlayerInfo[targetid][pOwnAch] == 1) ? (complete) : (incomplete), (PlayerInfo[targetid][pHsAch] == 1) ? (complete) : (incomplete),
	(PlayerInfo[playerid][pPtAch] == 1) ? (complete) : (incomplete), pName(targetid), targetid, PlayerInfo[targetid][pAchs], complete, incomplete);
	ShowPlayerDialog(playerid, DIALOG_MULT, DIALOG_STYLE_MSGBOX, "Player Achievements", TempStr, "Okay", "");
	return 1;
}
Код:
TotalGameTime(playerid, &hours, &minutes, &seconds)
{
	new variable = (gettime() - pInfo[playerid][TotalTime]) + (pInfo[playerid][Hours] * 60 * 60) + (pInfo[playerid][Mins] * 60) + pInfo[playerid][Secs];

	hours = floatround(variable, floatround_floor);
	minutes = floatround(variable, floatround_floor) % 60;
	seconds = floatround(variable, floatround_floor);

	return 1;
}
Reply
#4

Bump
Reply
#5

Код:
stock ShowPlayerAchievements(playerid, targetid)
{
	new TempStr[611], complete[32], incomplete[32];
	complete = "{05E200}в€ў", incomplete = "{FF0000}в€ў";
	strcat(TempStr, "%s {FFFFFF}Loyal Soldier - Register on MW4! (Reward: 5 score)\n");
	strcat(TempStr, "%s {FFFFFF}First Blood   - Do your first kill! (Reward: 5 score)\n");
	strcat(TempStr, "%s {FFFFFF}Born Assassin - Do 100 kills! (Reward: none)\n");
	strcat(TempStr, "%s {FFFFFF}Terminator    - Make a killing spree of 10! (Reward: 10k$ and 10 score)\n");
	strcat(TempStr, "%s {FFFFFF}Eagle's Eye   - Headshot a player, from a distance more than 300 meters (Reward: 5 score)\n");
	strcat(TempStr, "%s {FFFFFF}Prototype     - Capture 10 prototypes! (Reward: 10 score)\n");
	strcat(TempStr, "%s (%i) has completed %i/6 achievements!\n\n");
	strcat(TempStr, "%s {FFFFFF}- Completed Achievement | %s {FFFFFF}- Incomplete Achievement");
	format(TempStr, sizeof(TempStr), TempStr, (PlayerInfo[targetid][pRegAch] == 1) ? (complete) : (incomplete), (PlayerInfo[targetid][pKillAch] == 1) ? (complete) : (incomplete),
	(PlayerInfo[targetid][pAssAch] == 1) ? (complete) : (incomplete), (PlayerInfo[targetid][pOwnAch] == 1) ? (complete) : (incomplete), (PlayerInfo[targetid][pHsAch] == 1) ? (complete) : (incomplete),
	(PlayerInfo[playerid][pPtAch] == 1) ? (complete) : (incomplete), pName(targetid), targetid, PlayerInfo[targetid][pAchs], complete, incomplete);
	ShowPlayerDialog(playerid, DIALOG_MULT, DIALOG_STYLE_MSGBOX, "Player Achievements", TempStr, "Okay", "");
	return 1;
}
Код:
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(11772) : error 047: array sizes do not match, or destination array is too small
C:\Users\ANSH\Desktop\COD-MW4-master\COD-MW4-v3.pwn(11772) : error 047: array sizes do not match, or destination array is too small
Код:
complete[11], incomplete[11] 
to complete[32], incomplete[32]
Код:
format(TempStr, sizeof TempStr, TempStr, {Float, _}:...);
to format(TempStr, sizeof(TempStr), TempStr, {Float, _}:...);
Reply
#6

I solved myself no need to reply now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)