Jump to content
  • 0

Ajutor warning 202: number of arguments does not match definition


Mihai007

Question

Imi da warningul asta, am incercat sa adaug o culoare la DIALOG_VIPNAMECOLORS, de ex ALB

CMD:vipnamecolors(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_VIPNAMECOLORS, DIALOG_STYLE_LIST, "Culori", "Negru", "Alb", "Selecteaza", "Inchide");
}

Am adaugat culoarea, dar nu era in lista asa ca am facut "Alb", si imi da acest warning.

Cum pot rezolva?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

CMD:vipnamecolors(playerid, params[])
{
     new string_colors[512];
     format(string_colors, 256, "{FFFFFF}White\n{000000}Black\n");
     ShowPlayerDialog(playerid, DIALOG_VIPNAMECOLOR, DIALOG_STYLE_LIST, "VIPNAME COLOR:", string_colors, "Select", "Cancel");
    return 1;
}
stock serverColors(id) {
    new string[180];
    switch(id) {
        case 0: string = "FFFFFF";
        case 1: string = "000000";
    }
    return string;
}

if(dialogid == DIALOG_VIPNAMECOLOR)
    {
        if(response)
        {
            if(!IsPlayerInAnyVehicle(playerid))return SCM(playerid, COLOR_LIGHTRED, "Nu te aflii intr-un vehicul!");
            new save_color[256];
            switch(listitem)
            {
                case 0:
                {

                    CarInfo[OwnedVeh(vehicleid)][cVipTextColor] = 0;
                    Aici faci functia sa-ti puna pe vehiculul respectiv numele cu acea culoare
                }


    }

Incearca asa si vezi cum e!

PS:Ai de definit multe si de facut eu ti-am dat baza de aici dezvolti tu succes!

Edited by [i]Stefan
  • Like 1
Link to comment
Share on other sites

  • 0
La 12.03.2018 la 16:02, DrooM. a spus:

CMD:vipnamecolors(playerid, params[]) { ShowPlayerDialog(playerid, DIALOG_VIPNAMECOLORS, DIALOG_STYLE_LIST, "Culori", "Negru\nAlb\nRosu\nETC", "Selecteaza", "Inchide"); }

Asta trebuie sa pui acolo.

  • Like 1
  • Haha 1

 

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
Answer this question...

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