Jump to content

Recommended Posts

Salut, inainte de a imi spune problema vreau sa ma luati foarte usor pentru ca sunt foarte noob la scripturi. Incerc sa invat din greseli si de la altii. 

 

Bun, am vrut sa ma apuc sa fac o comanda "/updates" dar la compilare mi-au dat anumite erori! Unele dintre ele le-am rezolvat dar ultima nu o pot rezolva deloc " warning 211: possibly unintended assignment "! Nu stiu ce ar trebuii sa modific pentru a merge compilarea!

 

Comanda : CMD:updates(playerid, params[])
{
    if(gPlayerLogged[playerid] = 0) return SendClientMessage(playerid, COLOR_YELLOW, "Nu esti conectat");
    new string[128], tdialog[125], fdialog[800];
    format(tdialog, sizeof(tdialog), "{FFFF00}U{FFFFFF}update-uri");
    format(string, sizeof(string), "Versiune\tData - Ora\nVersiunea 0.1\t21.03.2017 - 15:30\n");
    format(fdialog, sizeof(fdialog), "%s", string);
    ShowPlayerDialog(playerid, DIALOG_UPDATES, DIALOG_STYLE_TABLIST_HEARDES, tdialog, fdialog, "Ok", "");
    return 1;
 }

 

Inca mai am de lucrat la ea cu alte chestii dar nu vrea sa imi compileze aceasta.

Edited by PigSmo
Link to comment
Share on other sites

Acuma am terminat comanda dupa un tutorial : 

 

 

Comanda :

CMD:updates(playerid, params[])
{
    if(gPlayerLogged[playerid] = 0) return SendClientMessage(playerid, COLOR_YELLOW, "Nu esti conectat");
    new string[128], tdialog[125], fdialog[800];
    format(tdialog, sizeof(tdialog), "{FFFF00}U{FFFFFF}update-uri");
    format(string, sizeof(string), "Versiune\tData - Ora\nVersiunea 0.1\t21.03.2017 - 15:30\n");
    format(fdialog, sizeof(fdialog), "%s", string);
    ShowPlayerDialog(playerid, DIALOG_UPDATES, DIALOG_STYLE_TABLIST_HEARDES, tdialog, fdialog, "Ok", "");
    return 1;
 }
 
    if(dialogid = DIALOG_UPDATES)
    {
        if(response)
        {
            if(listitem == 0)
            {
                new szString[2500];
                format(szString sizeof(szString),"%s Adaugari\n", szString);
                format(szString sizeof(szString),"%s A fost adaugata comanda /bonus\n", szString);
                format(szString sizeof(szString),"%s A fost adaugata comanda /updates\n", szString);
                ShowPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, "Update 0.1", szString, "Ok", "");
                return 1:
                }
            }
        }
    }

 

Problema la compilare : 

C:\Users\Denis\Desktop\RPG Romania 1.00.40\gamemodes\s4uriK.pwn(20264) : warning 211: possibly unintended assignment
C:\Users\Denis\Desktop\RPG Romania 1.00.40\gamemodes\s4uriK.pwn(20273) : error 010: invalid function or declaration
C:\Users\Denis\Desktop\RPG Romania 1.00.40\gamemodes\s4uriK.pwn(20275) : error 010: invalid function or declaration
C:\Users\Denis\Desktop\RPG Romania 1.00.40\gamemodes\s4uriK.pwn(20277) : error 010: invalid function or declaration
C:\Users\Denis\Desktop\RPG Romania 1.00.40\gamemodes\s4uriK.pwn(20280) : error 021: symbol already defined: "format"
C:\Users\Denis\Desktop\RPG Romania 1.00.40\gamemodes\s4uriK.pwn(20280) : error 010: invalid function or declaration
C:\Users\Denis\Desktop\RPG Romania 1.00.40\gamemodes\s4uriK.pwn(20281) : error 010: invalid function or declaration
C:\Users\Denis\Desktop\RPG Romania 1.00.40\gamemodes\s4uriK.pwn(20282) : error 010: invalid function or declaration
C:\Users\Denis\Desktop\RPG Romania 1.00.40\gamemodes\s4uriK.pwn(20284) : error 010: invalid function or declaration
C:\Users\Denis\Desktop\RPG Romania 1.00.40\gamemodes\s4uriK.pwn(52151) : warning 203: symbol is never used: "szString"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.
 

 

 

Puteti sa-mi spuneti de ce nu merge?

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.