Can someone help?(4 CP errors)
#1

Код:
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(7547) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(7547): error 017: undefined symbol "TEXT_LIGHTBLUE"
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(7547) : warning 215: expression has no effect
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(7547) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(7547) : fatal error 107: too many error messages on one line

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


4 Errors.
Can you help? The script -
pawn Код:
"TEXT_RED"Remove FX Effect", "Set", "Back" );
Full:
pawn Код:
if(dialogid == Radios )
    {
        if( listitem == R_DATA[ listitem ][ RadioID ] )
        {
            if ( !response )
            {
                if ( GetPVarInt( playerid, "RadioC" ) == -1 )
                    return cmd_radio1984( playerid, ""),SendError( playerid, "No radio playing!");

                new Str[ 25 ];
                SetPVarInt( playerid, "RadioC", -1 );
                GetPVarString( playerid, "Radio", Str, 25 );
                SetPVarInt( playerid, "RadioCount", listitem );
                for ( new i = 0; i < RadioCount + 1; i++ ) Audio_Stop(playerid, i);
                new Str2[ 129 ];
                format( Str2, sizeof Str2,"You stopped: ~r~~h~%s~w~.~n~~n~Any other sounds, music, etc... that were playing have been turned off!",Str );
                Info(playerid, Str2, 5000);
            }
            else
            {
                for ( new i = 0; i < RadioCount + 1; i++ ){ Audio_Stop(playerid, i);}

                Audio_PlayStreamed( playerid, R_DATA[ listitem ][ RadioURL ] );
                SetPVarString( playerid, "Radio", R_DATA[ listitem ][ RadioName ] );
                SetPVarInt( playerid, "RadioC", R_DATA[ listitem ][ RadioID ] );
                new Str[ 256 ];
                format( Str, sizeof Str, "You started playing: ~r~~h~%s", R_DATA[ listitem ][ RadioName ] );
                Info( playerid, Str, 5000 );
            }
        }
        else if ( listitem == RadioCount + 1 )
        {
            if ( GetPVarInt( playerid, "RadioC" ) == -1 )
                return cmd_radio1984( playerid, ""),SendError( playerid, "No radio playing!");

            ShowDialog( playerid, RadioVolume, DIALOG_STYLE_INPUT, "{FFFFFF}Radio Volume", "{FFFFFF}Set your radio's volume\n"TEXT_YELLOW"Volume 1 - 100", "Set", "Back" );
        }
        else if ( listitem == RadioCount + 2 )
        {
            if ( GetPVarInt( playerid, "RadioC" ) == -1 )
                return cmd_radio1984( playerid, ""),SendError( playerid, "No radio playing!");

            ShowDialog( playerid, RadioFX, DIALOG_STYLE_LIST, "{FFFFFF}Radio FX Effect", ""TEXT_LIGHTBLUE"Chorus\n\
                                                                            "
TEXT_LIGHTBLUE"Compression\n\
                                                                            "
TEXT_LIGHTBLUE"Distortion\n\
                                                                            "
TEXT_LIGHTBLUE"Echo\n\
                                                                            "
TEXT_LIGHTBLUE"Flanger\n\
                                                                            "
TEXT_LIGHTBLUE"Gargle\n\
                                                                            "
TEXT_LIGHTBLUE"I3DL2 Reverb\n\
                                                                            "
TEXT_LIGHTBLUE"Parametric Equalizer\n\
                                                                            "
TEXT_LIGHTBLUE"Reverb\n\
                                                                            "
TEXT_RED"Remove FX Effect", "Set", "Back" );
        }
        else if ( listitem == RadioCount + 3 )
        {
            if ( GetPVarInt( playerid, "RadioC" ) == -1 )
                return cmd_radio1984( playerid, ""),SendError( playerid, "No radio playing!");

            ShowEAXOptions( playerid );
        }
        else if ( listitem == RadioCount + 4 ) ShowRadioInfo( playerid );

    }
Reply
#2

Fix error 017: undefined symbol "TEXT_LIGHTBLUE" first and then post again

#define TEXT_LIGHTBLUE "{color code}"
Reply
#3

What does this mean :S
Код:
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(86) : warning 201: redefinition of constant/macro (symbol "COLOR_PINK")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(88) : warning 201: redefinition of constant/macro (symbol "COLOR_BLUE")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(90) : warning 201: redefinition of constant/macro (symbol "COLOR_ORANGE")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(97) : warning 201: redefinition of constant/macro (symbol "COLOR_GREY")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(98) : warning 201: redefinition of constant/macro (symbol "COLOR_GREEN")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(112) : warning 201: redefinition of constant/macro (symbol "COLOR_PURPLE")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(256) : warning 201: redefinition of constant/macro (symbol "COLOR_YELLOW")
Reply
#4

Quote:
Originally Posted by xSiiLenTx
Посмотреть сообщение
What does this mean :S
Код:
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(86) : warning 201: redefinition of constant/macro (symbol "COLOR_PINK")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(88) : warning 201: redefinition of constant/macro (symbol "COLOR_BLUE")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(90) : warning 201: redefinition of constant/macro (symbol "COLOR_ORANGE")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(97) : warning 201: redefinition of constant/macro (symbol "COLOR_GREY")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(98) : warning 201: redefinition of constant/macro (symbol "COLOR_GREEN")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(112) : warning 201: redefinition of constant/macro (symbol "COLOR_PURPLE")
C:\Users\Shehab\Benedenloadens\Stil Kansspel Rollenspel(256) : warning 201: redefinition of constant/macro (symbol "COLOR_YELLOW")
You have #define COLOR_PINK somthing 2(or more) times in your script what is not allowed. You need to delete one of them or to rename one of them to #define COLOR_PINK2 Something
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)