SAmp Error 017 Undefined symbol -
rockhopper - 11.04.2014
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
Re: SAmp Error 017 Undefined symbol -
Flake. - 11.04.2014
pawn Код:
SetPlayerTeam( playerid, team_terrorist);
Should be
pawn Код:
SetPlayerTeam( playerid, TEAM_TERRORIST); //Caps matter
Re: SAmp Error 017 Undefined symbol -
rockhopper - 11.04.2014
There are total 9 errors liike this near case only
Re: SAmp Error 017 Undefined symbol -
Flake. - 11.04.2014
Quote:
Originally Posted by rockhopper
There are total 9 errors liike this near case only
|
Show me the whole case code.
Re: SAmp Error 017 Undefined symbol -
rockhopper - 11.04.2014
I did it CAPS but then too same error
Код:
error 017: undefined symbol "TEAM_TERRORIST"
Re: SAmp Error 017 Undefined symbol -
Flake. - 11.04.2014
Like I said, show me the whole code around the cases if there are more errors
Don't use ()'s in the define
Re: SAmp Error 017 Undefined symbol -
BroZeus - 11.04.2014
this
"#define TEAM_TERRORIST( 1 )"
change to this
"#define TEAM_TERRORIST ( 1 )
there should be space between TEAM_TERRORIST and (1)
Re: SAmp Error 017 Undefined symbol -
rockhopper - 11.04.2014
Код:
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);
}
}
Re: SAmp Error 017 Undefined symbol -
rockhopper - 11.04.2014
THANK YOU ALL IM DONE
+Rep to both of you
space after () worked
CAPS also worked