undefined symbol "TEAM_police"
#1

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);]
Reply
#2

Код:
new TEAM_police;
Reply
#3

Quote:
Originally Posted by Stefan_Salvatore
Посмотреть сообщение
Код:
new TEAM_police;
Where should I add that?
Reply
#4

You should define TEAM_police, #define it under the includes..
Reply
#5

Put it where you define ''new'' definitions.
Or abowe the code
Reply
#6

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..
Reply
#7

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.
Reply
#8

Do you have any more defines ? Teams.. If not then make it
pawn Код:
#define Team_police 1
1 will be like the team(Job, or whatever you're using it for)'s id...
Reply
#9

Код:
#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
Reply
#10

That means you already defined it somewhere on the script.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)