Jump to content

Help me comanda /acolor un warnig


Recommended Posts

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.
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.