Not defined?
#1

Hi!


It says TEAM_CLOWNS are not defined but it is.. :S


Code:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if (gTeam[playerid] == TEAM_CLOWNS 0);
    {
        SetPlayerColor(playerid, TEAM_CLOWNS 0);
    }
    else if (gTeam[playerid] == TEAM_HOBOS 1) ;
    {
        SetPlayerColor(playerid, TEAM_HOBOS) 1);
    }
    else if(gTeam[playerid] == TEAM_COPS) 2);
    {
        SetPlayerColor(playerid, TEAM_COPS)2);
    }
    else if (gTeam[playerid] == TEAM_ARMY)3);
    {
        SetPlayerColor(playerid, TEAM_ARMY)3);
    }
     return 1;
}

Part of OnPlayerRequestClass:

pawn Код:
public OnPlayerRequestClass( playerid, classid )
{
    switch ( classid )
    {
        case 0: //
        { // Then
            GameTextForPlayer( playerid, "~r~TEAM Clowns", 300, 3 );
            // Sends a gametext for player
            // ~r~ is a red color in gametext.
            // Arguments : Player ID, const string[ ], time ( milliseconds ), style
            // Wiki for more info
            SetPlayerTeam( playerid, TEAM_ClOWNS);
            gTeam[playerid] = TEAM_ClOWNS;
        }
And the define:

pawn Код:
#define TEAM_ClOWNS 0
Error message:

Код:
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(329) : error 017: undefined symbol "TEAM_CLOWNS"
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(329) : warning 215: expression has no effect
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(329) : error 001: expected token: ";", but found ")"
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(329) : error 029: invalid expression, assumed zero
C:\Users\Davve\Desktop\Scripting\Server Las Venturas TDM\LV.pwn(329) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
Not defined? - by davve95 - 08.10.2012, 14:54
Re: Not defined? - by Skillet` - 08.10.2012, 14:59
Re: Not defined? - by davve95 - 08.10.2012, 16:14
Re: Not defined? - by Skillet` - 08.10.2012, 16:22
Re: Not defined? - by davve95 - 08.10.2012, 19:36
Re: Not defined? - by Riddick94 - 08.10.2012, 19:39
Re: Not defined? - by davve95 - 08.10.2012, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)