SA-MP Forums Archive
Errors.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Errors.. (/showthread.php?tid=278247)



Errors.. - James_Bourne - 21.08.2011

This was Mafia vs noob game mode but i changed the names.

Code:
C:\Users\james\Documents\WORLD WAR 3.pwn(53) : error 017: undefined symbol "TEAM_TERRORIST_COLOR"
C:\Users\james\Documents\WORLD WAR 3.pwn(57) : error 017: undefined symbol "TEAM_ARMY_COLOR"
C:\Users\james\Documents\WORLD WAR 3.pwn(174) : error 017: undefined symbol "TEAM_TERRORIST"
C:\Users\james\Documents\WORLD WAR 3.pwn(185) : error 017: undefined symbol "TEAM_ARMY"
C:\Users\james\Documents\WORLD WAR 3.pwn(202) : error 017: undefined symbol "TEAM_ARMY"
C:\Users\james\Documents\WORLD WAR 3.pwn(208) : error 017: undefined symbol "TEAM_TERRORIST"
C:\Users\james\Documents\WORLD WAR 3.pwn(240) : warning 215: expression has no effect
C:\Users\james\Documents\WORLD WAR 3.pwn(102) : warning 204: symbol is assigned a value that is never used: "GameTimer"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
6 Errors.
First Error Code:
Code:
SetPlayerColor(playerid,TEAM_TERRORIST_COLOR);
Second:
Code:
SetPlayerColor(playerid,TEAM_ARMY_COLOR);
Third
Code:
	if(gTeam[playerid] == TEAM_TERRORIST)
4th
Code:
	else if(gTeam[playerid] == TEAM_ARMY)
5th
Code:
	if(killerid == TEAM_ARMY)
6th


Re: Errors.. - James_Bourne - 21.08.2011

Hey someone? anyways i fixed the 4 errors and 1 warning.

I got only 1 warning left

Code:
C:\Users\james\Documents\WORLD WAR 3.pwn(102) : warning 204: symbol is assigned a value that is never used: "GameTimer"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
That warning is in this:
Code:
	GameTimer = SetTimer("GameTime",1000,1);



Re: Errors.. - Darnell - 21.08.2011

Delete GateTimer.


Re: Errors.. - WoodPecker - 21.08.2011

Add this to your gamemode.

PHP Code:
#define TEAM_ARMY
#define TEAM_TERRORIST
#define TEAM_ARMY_COLOR      0x33AA33AA
#define TEAM_TERRORIST_COLOR        0xE60000FF 



Re: Errors.. - James_Bourne - 21.08.2011

i got that wood all is fixed but i got 1 warning check my 2nd post.


Re: Errors.. - WoodPecker - 21.08.2011

Delete this from your gamomode:

PHP Code:
GameTimer SetTimer("GameTime",1000,1); 



Re: Errors.. - James_Bourne - 21.08.2011

Thanks.