SAmp Error 017 Undefined symbol
#1

I saw many threads about this error but couldnt fin a fix
I defined the two team but then too error

CODES define :-
Код:
#define TEAM_ARMY ( 0 ) 
                               #define TEAM_TERRORIST( 1 )
Error is near case : -
Код:
case 9: 
        { // Then
            GameTextForPlayer( playerid, "~r~team terrorist", 300, 3);
            SetPlayerTeam( playerid, team_terrorist); // Sets the player's team to team_terrorist
        }
Please Help me
Reply
#2

pawn Код:
SetPlayerTeam( playerid, team_terrorist);
Should be

pawn Код:
SetPlayerTeam( playerid, TEAM_TERRORIST); //Caps matter
Reply
#3

There are total 9 errors liike this near case only
Reply
#4

Quote:
Originally Posted by rockhopper
Посмотреть сообщение
There are total 9 errors liike this near case only
Show me the whole case code.
Reply
#5

I did it CAPS but then too same error
Код:
error 017: undefined symbol "TEAM_TERRORIST"
Reply
#6

Like I said, show me the whole code around the cases if there are more errors

pawn Код:
#define TEAM_TERRORIST 1
Don't use ()'s in the define
Reply
#7

this
"#define TEAM_TERRORIST( 1 )"
change to this
"#define TEAM_TERRORIST ( 1 )
there should be space between TEAM_TERRORIST and (1)
Reply
#8

Код:
switch ( classid ) 
    {
        case 0:
        { 
            GameTextForPlayer( playerid, "~g~TEAM ARMY", 300, 3 );
            SetPlayerTeam( playerid, TEAM_ARMY ); 
        }

        case 1: 
        { 
            GameTextForPlayer( playerid, "~g~TEAM ARMY", 300, 3 );
            SetPlayerTeam( playerid, TEAM_ARMY);
        }

        case 2: 
        {
            GameTextForPlayer( playerid, "~g~TEAM ARMY", 300, 3 );
            SetPlayerTeam( playerid, TEAM_ARMY); 
        }
        
        case 3: 
        {
            GameTextForPlayer( playerid, "~g~TEAM ARMY", 300, 3 );
            SetPlayerTeam( playerid, TEAM_ARMY);
        }
        
        case 4: 
        { 
            GameTextForPlayer( playerid, "~g~TEAM ARMY", 300, 3 );
            SetPlayerTeam( playerid, TEAM_ARMY);
        }
        
        case 5: 
        { 
            GameTextForPlayer( playerid, "~g~TEAM ARMY", 300, 3 );
            SetPlayerTeam( playerid, TEAM_ARMY); 
        }
        
        case 6:
        { 
            GameTextForPlayer( playerid, "~g~TEAM ARMY", 300, 3 );
            SetPlayerTeam( playerid, TEAM_ARMY); 
        }
        
        case 7:
        { 
            GameTextForPlayer( playerid, "~g~TEAM ARMY", 300, 3 );            
            SetPlayerTeam( playerid, TEAM_ARMY); 
        }
        
        case 8: 
        { 
            GameTextForPlayer( playerid, "~g~TEAM ARMY", 300, 3 );
            SetPlayerTeam( playerid, TEAM_ARMY); 
        }
        
        case 9: 
        { 
            GameTextForPlayer( playerid, "~r~TEAM TERRORIST", 300, 3 );
            SetPlayerTeam( playerid, TEAM_TERRORIST);
        }
        
         case 10:
        {
            GameTextForPlayer( playerid, "~r~TEAM TERRORIST", 300, 3 );
            SetPlayerTeam( playerid, TEAM_TERRORIST);
        }
        
         case 11: 
        { 
            GameTextForPlayer( playerid, "~r~TEAM TERRORIST", 300, 3 );
            SetPlayerTeam( playerid, TEAM_TERRORIST); 
        }
        
         case 12: 
        { 
            GameTextForPlayer( playerid, "~r~TEAM TERRORIST", 300, 3 );
            SetPlayerTeam( playerid, TEAM_TERRORIST); 
        }
        
         case 13: 
        { 
            GameTextForPlayer( playerid, "~r~TEAM TERRORIST", 300, 3 );           
            SetPlayerTeam( playerid, TEAM_TERRORIST);
        }
        
         case 14: 
        { 
            GameTextForPlayer( playerid, "~r~TEAM TERRORIST", 300, 3 );           
            SetPlayerTeam( playerid, TEAM_TERRORIST); 
        }
        
         case 15: 
        { 
            GameTextForPlayer( playerid, "~r~TEAM TERRORIST", 300, 3 );
            SetPlayerTeam( playerid, TEAM_TERRORIST); 
        }
        
         case 16: 
        { 
            GameTextForPlayer( playerid, "~r~TEAM TERRORIST", 300,3); 
           SetPlayerTeam( playerid, TEAM_TERRORIST); 
        }
        
         case 17:
        { 
            GameTextForPlayer( playerid, "~r~TEAM TERRORIST", 300, 3 );
            SetPlayerTeam( playerid, TEAM_TERRORIST); 
        }

    }
Reply
#9

THANK YOU ALL IM DONE

+Rep to both of you

space after () worked

CAPS also worked
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)