Jump to content

Error 014 Cum rezolv?


Powed

Recommended Posts

Linia 7629 incepe cu case DIALOG_BONUS ;

 

case DIALOG_BONUS ;
        {
            if(!response) return true;
            new  money[180], premium[180];
            switch(listitem) {
                case 0: {
                    GiveVehicle(playerid, 426, 0, 0, 0, 0, 0);
                    format(money, sizeof(money), "$2.500.000\n");
                    format(premium, sizeof(premium), "25 premium points\n");
                    strcat(money,premium);
                    ShowPlayerDialog(playerid, DIALOG_BONUS+1, DIALOG_STYLE_LIST, "Bonus", money, "OK", "Close");
                
                    }

Screenshot_20210516-153250.png

Link to comment
Share on other sites

Ce e cu loose identation nu este aranjat scriptul, unde e symbol is never used inseamna ca a fost definit si nu este utilizat ce inseamna ca poate fi sters, iar la restul trebuie sa vad exact scriptul, dialogul nu are nicio problema

Link to comment
Share on other sites

Acum 5 ore, Powed a spus:

Linia 7629 incepe cu case DIALOG_BONUS ;

 

case DIALOG_BONUS ;
        {
            if(!response) return true;
            new  money[180], premium[180];
            switch(listitem) {
                case 0: {
                    GiveVehicle(playerid, 426, 0, 0, 0, 0, 0);
                    format(money, sizeof(money), "$2.500.000\n");
                    format(premium, sizeof(premium), "25 premium points\n");
                    strcat(money,premium);
                    ShowPlayerDialog(playerid, DIALOG_BONUS+1, DIALOG_STYLE_LIST, "Bonus", money, "OK", "Close");
                
                    }

Screenshot_20210516-153250.png

Iti apare acea eroare la linia 7629 deoarece trebuie să pui

case DIALOG_BONUS:

în loc de

case DIALOG_BONUS ;

 

Adică 'două puncte' în loc de 'punct și virgulă' la sfârșit.

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.