undefined symbol "TEAM_police" -
boomerboom - 11.10.2013
Error
Код:
C:\Users\***\Desktop\LA-GW\filterscripts\GMTest.pwn(316) : error 017: undefined symbol "TEAM_police"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Код:
//Police
AddPlayerClass(289,1568.5439,-1690.4707,5.8906,177.7434,0,0,0,0,0,0); //
Код:
gTeam[playerid] = TEAM_police;
GameTextForPlayer(playerid,"~b~police",3000,5);
SetPlayerPos(playerid, 1568.5439,-1690.4707,177.7434);
SetPlayerFacingAngle(playerid, 177.7434);
SetPlayerCameraLookAt(playerid, 1568.5439,-1690.4707,177.7434);
SetPlayerCameraPos(playerid, 1568.5439 + (5 * floatsin(-1690.4707, degrees)), -1690.4707 + (5 * floatcos(-1690.4707, degrees)), 177.7434);
SetPlayerColor(playerid,0x0000FFAA);
ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox", 1.800001, 1, 0, 0, 1, 600);]
Re: undefined symbol "TEAM_police" -
***Niko*** - 11.10.2013
Re: undefined symbol "TEAM_police" -
boomerboom - 11.10.2013
Quote:
Originally Posted by Stefan_Salvatore
|
Where should I add that?
Re: undefined symbol "TEAM_police" -
xVIP3Rx - 11.10.2013
You should define TEAM_police, #define it under the includes..
Re: undefined symbol "TEAM_police" -
***Niko*** - 11.10.2013
Put it where you define ''new'' definitions.
Or abowe the code
Re: undefined symbol "TEAM_police" -
Konstantinos - 11.10.2013
Under includes:
pawn Код:
#define TEAM_police value_here // CHANGEME!
I'm not sure if you've already the teams etc. But you define the number like:
pawn Код:
#define TEAM_A 0
#define TEAM_B 1
new
gTeam[ MAX_PLAYERS ]
;
// somewhere:
if( gTeam[ playerid ] == TEAM_A ) // if gTeam[ playerid ] is 1, then..
Re: undefined symbol "TEAM_police" -
boomerboom - 11.10.2013
Quote:
Originally Posted by xVIP3Rx
You should define TEAM_police, #define it under the includes..
|
Now
Код:
C:\Users\***\Desktop\LA-GW\filterscripts\GMTest.pwn(317) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: undefined symbol "TEAM_police" -
xVIP3Rx - 11.10.2013
Do you have any more defines ? Teams.. If not then make it
1 will be like the team(Job, or whatever you're using it for)'s id...
Re: undefined symbol "TEAM_police" -
boomerboom - 11.10.2013
Код:
#define TEAM_police 1
DEFINED
C:\Users\***\Desktop\LA-GW\filterscripts\GMTest.pwn(95) : warning 201: redefinition of constant/macro (symbol "TEAM_police")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
ERROR
}
else if(classid == 6)
{
if( gTeam[ playerid ] == TEAM_police )
GameTextForPlayer(playerid,"~b~Police",3000,5);
SetPlayerPos(playerid, 1568.5439,-1690.4707,177.7434);
SetPlayerFacingAngle(playerid, 177.7434);
SetPlayerCameraLookAt(playerid, 1568.5439,-1690.4707,177.7434);
SetPlayerCameraPos(playerid, 1568.5439 + (5 * floatsin(-1690.4707, degrees)), -1690.4707 + (5 * floatcos(-1690.4707, degrees)), 177.7434);
SetPlayerColor(playerid,0x0000FFAA);
ApplyAnimation(playerid,"GYMNASIUM", "GYMshadowbox", 1.800001, 1, 0, 0, 1, 600);
LINE
Re: undefined symbol "TEAM_police" -
xVIP3Rx - 11.10.2013
That means you already defined it somewhere on the script.