Compile Error
#1

Код:
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;
}
All story is here: http://forum.sa-mp.com/showthread.ph...99#post2930899
Reply
#2

for first error im not sure , but i think you need to define colors first

here is the list of defined colors of samp
https://sampforum.blast.hk/showthread.php?tid=413926

dont know why i cant find this color
PHP код:
0x0F6F6FF 
change it from 0x0F6F6FF to 0xAA3333AA


PHP код:
#define COLOR_RED 0xAA3333AA
#define TEAM_AZTECAS_COLOR 0xAA3333AA 
Good luck brother
Reply
#3

its simple and clearrly the error says it is a redefination of "TEAM_AZTECAS_COLOR" so remove line1066 caz its already defined
Reply
#4

You've been told how to fix it to your other thread. Remove this line:
pawn Код:
#define TEAM_AZTECAS_COLOR 0x0F6F6FF
from line 1066. And replace PointToPoint with IsPlayerInRangeOfPoint.
pawn Код:
public IsAtLicenseplace(playerid)
{
    return (IsPlayerInRangeOfPoint(playerid,25.0,362.4653,173.7711,1008.3828));
}
Reply
#5

Код:
C:\Documents and Settings\Mihai\Desktop\GM\pawno\include\streamer.inc(363) : error 017: undefined symbol "Streamer_OnPlayerPickUpPickup"
C:\Documents and Settings\Mihai\Desktop\GM\pawno\include\streamer.inc(383) : error 017: undefined symbol "Streamer_OnPlayerEnterCP"
C:\Documents and Settings\Mihai\Desktop\GM\pawno\include\streamer.inc(403) : error 017: undefined symbol "Streamer_OnPlayerLeaveCP"
C:\Documents and Settings\Mihai\Desktop\GM\pawno\include\streamer.inc(423) : error 017: undefined symbol "Streamer_OnPlayerEnterRaceCP"
C:\Documents and Settings\Mihai\Desktop\GM\pawno\include\streamer.inc(443) : error 017: undefined symbol "Streamer_OnPlayerLeaveRaceCP"
C:\Documents and Settings\Mihai\Desktop\GM\pawno\include\sscanf2.inc(203) : error 017: undefined symbol "SSCANF_OnPlayerConnect"
C:\Documents and Settings\Mihai\Desktop\GM\pawno\include\sscanf2.inc(227) : error 017: undefined symbol "SSCANF_OnPlayerDisconnect"
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2687) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2689) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2691) : error 001: expected token: ";", but found "public"
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2691) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2691) : error 004: function "RACtime" is not implemented
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2691) : fatal error 107: too many error messages on one line

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


12 Errors.
Line 363 & 383:
Код:
new fbumper[23][0] = {
    {1117},
    {1152},
    {1153},                   <- This is Line 363.
    {1155},
    {1157},
    {1160},
    {1165},
    {1167},
    {1169},
    {1170},
    {1171},
    {1172},
    {1173},
    {1174},
    {1175},
    {1179},
    {1181},
    {1182},
    {1185},
    {1188},
    {1189},
    {1192},
    {1193}                   <- This is line 383
};
Line 403:
Код:
new rbumper[22][0] = {
    {1140},
    {1141},
    {1148},
    {1149},
    {1150},
    {1151},
    {1154},
    {1156},
    {1159},
    {1161},
    {1166},
    {1168},
    {1176},
    {1177},
    {1178},
    {1180},
    {1183},         <- This is line 483
    {1184},
    {1186},
    {1187},
    {1190},
    {1191}
};
Line 423:
Код:
new exhaust[28][0] = {
    {1018},
    {1019},
    {1020},
    {1021},
    {1022},
    {1028},
    {1029},
    {1037},
    {1043},
    {1044},
    {1045},
    {1046},           <- This is line 423
    {1059},
    {1064},
    {1065},
    {1066},
    {1089},
    {1092},
    {1104},
    {1105},
    {1113},
    {1114},
    {1126},
    {1127},
    {1129},
    {1132},
    {1135},
    {1136}
};
Line 443:
Код:
new bventr[2][0] = {
    {1042},          <- This is line 443
    {1044}
};
Line 203:
Код:
new Float:ggRandomSpawns[14][4] = {
	{-382.9082, 2257.2000, 42.4844, 92.0125},
	{-400.1190, 2252.7856, 42.4297, 104.0876},
	{-408.1555, 2227.8230, 42.4258, 175.8417},
	{-438.5898, 2216.6067, 42.4297, 88.1076},         <- This is line 203
	{-457.4828, 2222.2290, 43.1215, 359.4334},
	{-407.6174, 2242.1868, 42.4297, 19.8002},
	{-377.5424, 2252.3633, 42.4844, 278.5926},
	{-360.8551, 2237.6250, 42.4844, 187.0984},
	{-345.6688, 2221.0908, 42.4851, 188.0384},
	{-354.7572, 2208.6331, 42.4844, 105.3176},
	{-369.1211, 2206.0105, 42.4844, 9.6775},
	{-388.8326, 2199.0234, 42.4235, 103.1243},
	{-403.0392, 2204.4207, 42.4297, 12.8834},
	{-335.6445, 2219.2488, 42.4872, 286.7394}
};
Line 227:
Код:
new ggLevel[16][4] = {
	{1, 3, 22, 999},//9mm
	{1, 3, 22, 999},//9mm
	{2, 6, 23, 999},//Silenced 9mm
	{3, 9, 24, 999},//Desert Eagle
	{4, 12, 25, 999},//Shotgun
	{5, 15, 26, 999},//Sawnoff Shotgun
	{6, 18, 27, 999},//Combat Shotgun
	{7, 21, 28, 999},//Micro SMG/Uzi
	{8, 24, 32, 999},//Tec-9
	{9, 27, 29, 999},//MP5
	{10, 30, 30, 999},//AK-47            <- This is line 227
	{11, 33, 31, 999},//M4
	{12, 36, 33, 999},//Country Rifle
	{13, 39, 34, 999},//Sniper Rifle
	{13, 42, 16, 999},//Grenade
	{14, 45, 4, 1}//Knife
};
Line 2687, 2689, 2691:
Код:
    if(IsPlayerInRangeOfPoint(playerid, Float:362.4653, Float:173.7711, Float:1008.3828))     <- 2687
	return
}                                                                                                                                    <- 2689

public RACtime(playerid)                                                                                                      <- 2691
{
Reply
#6

there is no " ; " after " } " remove "}; " in error lien and do just "}"
Reply
#7

Take note that errors from 363 to 227 take place in the include files, not your script.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)