Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Ajutor warning 202: number of arguments does not match definition


Question

Posted

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?

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
  • 0
Posted
CMD:vipnamecolors(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_VIPNAMECOLORS, DIALOG_STYLE_LIST, "Culori", "Negru\nAlb\nRosu\nETC", "Selecteaza", "Inchide");
}

 

  • Like 1
  • 0
Posted
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

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.