-HELP- errors
#1

Hi there. I have a big problem. It is the errors of gamemode - http://forum.sa-mp.com/showthread.ph...t=Capture+flag
Errors
Код:
D:\DucksCTF.pwn(677) : error 017: undefined symbol "MessageF"
D:\DucksCTF.pwn(679) : error 017: undefined symbol "MessageF"
D:\DucksCTF.pwn(680) : error 017: undefined symbol "MessageF"
D:\DucksCTF.pwn(686) : error 017: undefined symbol "MessageF"
D:\DucksCTF.pwn(690) : error 017: undefined symbol "SWShopF"
D:\DucksCTF.pwn(692) : error 017: undefined symbol "SWShopF"
D:\DucksCTF.pwn(693) : error 017: undefined symbol "SWShopF"
D:\DucksCTF.pwn(695) : error 017: undefined symbol "MessageF"
D:\DucksCTF.pwn(696) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(698) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(699) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(700) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(701) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(702) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(706) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(707) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(708) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(709) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(3082) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(3083) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(3084) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(3085) : error 017: undefined symbol "TeamPF"
D:\DucksCTF.pwn(3101) : error 017: undefined symbol "PlayerCD"
D:\DucksCTF.pwn(3103) : error 017: undefined symbol "GetName"
D:\DucksCTF.pwn(3108) : error 017: undefined symbol "pFile"
D:\DucksCTF.pwn(3116) : error 017: undefined symbol "pFile"

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


26 Errors.
---

And one more problem. I found a bug in it when I tested it on my server. When playing as a Grove so I can only take my team flag - Grove. No other take do not go.




Someone who finds me these 2 problems you solve?
Thank you for answers
Reply
#2

give lines of the errors
Reply
#3

Код:
	if(DOF2_FileExists(MessageF())
	{
		DOF2_CreateFile(MessageF());
		DOF2_SetInt(MessageF(), "MsgTime", 5);
		for(new i=1; i<6; i++)
		{
			new nut[20], std[256];
			format(nut, sizeof(nut), "Message%d", i);
			format(std, sizeof(std), "{ffffff}%d. Message {ff0000}|| {ffff00}(Admin Name)", i);
			DOF2_SetString(MessageF(), nut, std);
		}
		DOF2_SaveFile();
	}
	if(DOF2_FileExists(SWShopF())
	{
		DOF2_CreateFile(SWShopF());
		DOF2_SetInt(SWShopF(), "CurrentL", -1);
	}
	AMT = SetTimer("AutoMsgP", 1000*60*DOF2_GetInt(MessageF(), "MsgTime"), false);
	if(DOF2_FileExists(TeamPF())
	{
		DOF2_CreateFile(TeamPF());
		DOF2_SetInt(TeamPF(), "GroveP", 0);
		DOF2_SetInt(TeamPF(), "AztecasP", 0);
		DOF2_SetInt(TeamPF(), "VagosP", 0);
		DOF2_SetInt(TeamPF(), "PoliceP", 0);
	}
	//grove 0 aztecas 1 vagos 2 police 3

	Points[0] = DOF2_GetInt(TeamPF(), "GroveP");
	Points[1] = DOF2_GetInt(TeamPF(), "AztecasP");
	Points[2] = DOF2_GetInt(TeamPF(), "VagosP");
	Points[3] = DOF2_GetInt(TeamPF(), "PoliceP");
next

Код:
public OnPlayerEnterCheckpoint(playerid)
{
	Points[0] = DOF2_GetInt(TeamPF(), "GroveP");
	Points[1] = DOF2_GetInt(TeamPF(), "AztecasP");
	Points[2] = DOF2_GetInt(TeamPF(), "VagosP");
	Points[3] = DOF2_GetInt(TeamPF(), "PoliceP");
	AntiDeAMX();
	if(CPS_IsPlayerInCheckpoint(playerid, SWShopCP))
	{
		new listitems[] = "{FF0000}FlameThrower(8,000$)\n{FFFFFF}ChainSaw(7,000$)";
		ShowPlayerDialog(playerid,Weapon,DIALOG_STYLE_LIST, "{FFFFFF}Ammunation",listitems,"Select","Cancel");
	}
	if(CPS_IsPlayerInCheckpoint(playerid, RaceCP))
	{
		if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "{FF00FF}Race On Time: {FFFFFF}You Are Not In A Vehicle");
		if(RaceActive == 1) return SendClientMessage(playerid, -1, "{FF00FF}Race On Time: {FFFFFF}Someone Is Already In The Race!");
		InROT[playerid] = 1;
		RaceActive = 1;
		SetVehiclePos(GetPlayerVehicleID(playerid), 2026.7345,852.3526,6.4600);
		SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.00);
		SetPlayerRaceCheckpoint(playerid, 0, 1836.8586,852.3408,9.7648,1312.6824,881.9849,6.5395 , 5); // show FIRST
		PlayerCD(playerid,150);
		new Rmsg[256];
		format(Rmsg, sizeof(Rmsg), "The Player %s Has Started The Race On Time! He Has 150 Sec To Finish It", GetName(playerid));
		SendClientMessageToAll(0xFFFF00, Rmsg);
	}
	if(CPS_IsPlayerInCheckpoint(playerid, AztecasCP))
	{
		if(!strcmp(DOF2_GetString(pFile(playerid), "Team"), "Aztecas"))
		{
						if(Flag[playerid] == 1)
						{
							RemovePlayerAttachedObject(playerid,3);
							GroveF = CreatePickup(2914, 1, 1480.2485,2195.8704,20.9065, 0);
							Flag[playerid] = 0;
						   // SetPlayerMapIcon( playerid, 10,2602.8953,2364.1018,39.3744 , 19z, 0, MAPICON_LOCAL );
							if(strcmp(DOF2_GetString(pFile(playerid), "Team"), "Grove", true))
Reply
#4

already defined these errors?

example

pawn Код:
#define MessageF
do the same, with all errors
Reply
#5

I defined, and now
Код:
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 1)
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 1)
error 029: invalid expression, assumed zero
error 001: expected token: ",", but found ";"
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 1)
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 1)
error 029: invalid expression, assumed zero
error 001: expected token: ",", but found ";"
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 1)
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 1)
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 1)
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 1)
error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 1)
error 029: invalid expression, assumed zero
By mode I gave this
Код:
#define MessageF
#define SWShopF
#define TeamPF
#define PlayerCD
#define GetName
#define pFile
Reply
#6

Ideas?
Reply
#7

isnt #define its
pawn Код:
new something;
and if its for a certain player you should use
pawn Код:
new something[MAX_PLAYERS];
Reply
#8

Do I have to put the mode as follows:
Код:
new MessageF;
new SWShopF;
new TeamPF;
new PlayerCD;
new GetName;
new pFile;

And now there are these errors
Код:
error 012: invalid function call, not a valid address
error 012: invalid function call, not a valid address
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 012: invalid function call, not a valid address
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 012: invalid function call, not a valid address
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 012: invalid function call, not a valid address
error 012: invalid function call, not a valid address
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 012: invalid function call, not a valid address
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 012: invalid function call, not a valid address
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 012: invalid function call, not a valid address
error 012: invalid function call, not a valid address
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 012: invalid function call, not a valid address
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 012: invalid function call, not a valid address
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 012: invalid function call, not a valid address
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 012: invalid function call, not a valid address
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 012: invalid function call, not a valid address

Btw: I found it to anyone who would like it repaired and sent corrected?
http://pastebin.com/p0fEM7V7
Reply
#9

Help me please
Reply
#10

Help me please.
The mode I really like, I would like to have it on the server.
Please, help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)