Jump to content

Recommended Posts

Posted (edited)

accesta este warnigu error 040: duplicate "case" label (value 6268)

case 6268: //dialog
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        playerVariables[playerid][pColor] = 0;
                        SCM(playerid, COLOR_WHITE,"{CECECE}Server: {FFFFFF}Nick color changed! Hope you like the new color!");
                    }
                    case 1:
                    {
                        playerVariables[playerid][pColor] = 28;
                        SCM(playerid, COLOR_WHITE,"{E60032}Server: {FFFFFF}Nick color changed! Hope you like the new color!");
                    }
                    case 2:
                    {
                        playerVariables[playerid][pColor] = 26;
                        SCM(playerid, COLOR_WHITE,"{ab0000}Server: {FFFFFF}Nick color changed! Hope you like the new color!");
                    }
                    case 3:
                    {
                        playerVariables[playerid][pColor] = 27;
                        SCM(playerid, COLOR_WHITE,"{FF6347}Server: {FFFFFF}Nick color changed! Hope you like the new color!");
                    }
                }
            }
        }

CMD:acolor(playerid, params[])
{
    if(playerVariables[playerid][pAdminLevel] >= 1)
    {
        ShowPlayerDialog(playerid, 6268, DIALOG_STYLE_LIST, "Admin / Helper colors:" , "{CECECE}White\n{E60032}Cool Red\n{AB0000}Dark Red\n{FF6347}Light Red\n" , "Select" , "Cancel");
    }
    else return SCM(playerid,COLOR_WHITE,"You are not an admin/helper.");
    return 1;
} //comanda

Multumesc anticipat , ofer +1 care ma ajuta.

Sunt si eu la inceput. Va rog ajutati-ma

am rezolvat 

5 minutes ago, Stelian aka eNeR. said:

am rezolvat 

 

Edited by Stelian aka eNeR.
Posted
Acum 7 minute, Stelian aka eNeR. a spus:

accesta este warnigu error 040: duplicate "case" label (value 6268)

case 6268: //dialog
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        playerVariables[playerid][pColor] = 0;
                        SCM(playerid, COLOR_WHITE,"{CECECE}Server: {FFFFFF}Nick color changed! Hope you like the new color!");
                    }
                    case 1:
                    {
                        playerVariables[playerid][pColor] = 28;
                        SCM(playerid, COLOR_WHITE,"{E60032}Server: {FFFFFF}Nick color changed! Hope you like the new color!");
                    }
                    case 2:
                    {
                        playerVariables[playerid][pColor] = 26;
                        SCM(playerid, COLOR_WHITE,"{ab0000}Server: {FFFFFF}Nick color changed! Hope you like the new color!");
                    }
                    case 3:
                    {
                        playerVariables[playerid][pColor] = 27;
                        SCM(playerid, COLOR_WHITE,"{FF6347}Server: {FFFFFF}Nick color changed! Hope you like the new color!");
                    }
                }
            }
        }

CMD:acolor(playerid, params[])
{
    if(playerVariables[playerid][pAdminLevel] >= 1)
    {
        ShowPlayerDialog(playerid, 6268, DIALOG_STYLE_LIST, "Admin / Helper colors:" , "{CECECE}White\n{E60032}Cool Red\n{AB0000}Dark Red\n{FF6347}Light Red\n" , "Select" , "Cancel");
    }
    else return SCM(playerid,COLOR_WHITE,"You are not an admin/helper.");
    return 1;
} //comanda

Multumesc anticipat , ofer +1 care ma ajuta.

Sunt si eu la inceput. Va rog ajutati-ma

Incearca asa , in loc de case 6268 pune -> if(dialogid == 6268) + modifica la toate !

  • Upvote 1
Posted

help ajutor nu imi arata ce scriu in chat la comanda nu stiu ce are cand dau /acolor selectez culoarea si cand scriu nu imi arata nimic doar ce am scris nu imi arata numele meu cu accea culoare

cand scriu /pcolor si dau pe o culoare asa la enumereala nu imi functioneaza va rog ajutai-ma

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.