Error compile
#1

Код:
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(1019) : warning 201: redefinition of constant/macro (symbol "COLOR_RED")
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(1067) : warning 201: redefinition of constant/macro (symbol "TEAM_AZTECAS_COLOR")
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(1872) : error 021: symbol already defined: "PlayerToPoint"
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2691) : error 036: empty statement
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2693) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2693) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2693) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2693) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2693) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2693) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2693) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2693) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2693) : fatal error 107: too many error messages on one line

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


6 Errors.
Line 1019:
Код:
#define COLOR_RED 0xAA3333AA
Line 1067:
Код:
#define TEAM_AZTECAS_COLOR 0x0F6F6FF
Line 1872:
Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
Line 2691:
Код:
if(IsPlayerConnected(playerid));
Line 2693:
Код:
if(PlayerToPoint(25.0,playerid,362.4653,173.7711,1008.3828));
If you can, speak in Romanian.
Thanks.
Reply
#2

some of symbols are defined 2 times like COLOR_RED etc remove thier 2nd define
Reply
#3

Yea!!. redefinition means you defined it twice.
Reply
#4

ok, but errors?
Reply
#5

do u mind showing us youre all codes
Reply
#6

Remove lines 1019 and 1067 because they're already defined.

Change to:
pawn Код:
if(IsPlayerConnected(playerid))
and
pawn Код:
if(PlayerToPoint(25.0,playerid,362.4653,173.7711,1008.3828))
Do not use semicolon (;) at the end of an if statement.

About the other, you probably have 2 public or forward about PlayerToPoint but it's better to remove it all and use IsPlayerInRangeOfPoint which is a native by SA-MP.
Reply
#7

first of all remove the lines 1019 and 1067 ,you already defined them
and change line 2691 to:
pawn Код:
if(IsPlayerConnected(playerid))
without the ;
and line 2693 remove the ; so it will be like this:
pawn Код:
if(PlayerToPoint(25.0,playerid,362.4653,173.7711,1008.3828))
and compile it
Reply
#8

I do it and now is show me :

Код:
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(1066) : warning 201: redefinition of constant/macro (symbol "TEAM_AZTECAS_COLOR")
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2690) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2690) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2690) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2690) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2690) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2690) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2690) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2690) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2690) : fatal error 107: too many error messages on one line

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


4 Errors.
Line 1066:
Код:
#define TEAM_AZTECAS_COLOR 0x0F6F6FF
Line 2690:
Код:
public IsAtLicenseplace(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	    if(PlayerToPoint(25.0,playerid,362.4653,173.7711,1008.3828))                       <- this is Line 2690
		{
			return 1;
		}
	}
	return 0;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)