Jump to content
  • 0

2 Erori


buNNy

Question

C:\Users\vlogs\Desktop\PlayedTIMES.COM\gamemodes\GM.pwn(11793) : warning 204: symbol is assigned a value that is never used: "getcarid"
C:\Users\vlogs\Desktop\PlayedTIMES.COM\gamemodes\GM.pwn(11827) : warning 202: number of arguments does not match definition

PRIMA>>>

Spoiler


        if(rainbowcar[playerid] == 0)
        {
            new getcarid = GetPlayerVehicleID(playerid); ------ aici
            {
                new carid = PlayerInfo[playerid][pCarKey];

A doua>>>

Spoiler

    {
        addcodes(playerid); ----- aici
    }

 

COMUNITATEA MEA DE RESURSE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spacer.png
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
www.codeup.ro / www.codeup.ro/forum

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Alea sunt warninguri, fisierul .amx e creat.
Pentru primul warning, poti sterge acea linie, iti spune ca e definit si nu il folosesti.
Dar, problema e ca nu stiu de ce pui { dupa new getcarid.. acoladele se folosesc cand verifici ceva, acolo nu isi are locul.

Iar pentru al doilea warning, trebuie sa te uiti ce parametri ai la functia "addcodes", ca tu folosesti doar unul (adica playerid), iar functia are mai multe argumente (sau mai putine, poate fi si cazul asta).

Link to comment
Share on other sites

  • 0
Acum 15 minute, Lunoxx a spus:

Alea sunt warninguri, fisierul .amx e creat.
Pentru primul warning, poti sterge acea linie, iti spune ca e definit si nu il folosesti.
Dar, problema e ca nu stiu de ce pui { dupa new getcarid.. acoladele se folosesc cand verifici ceva, acolo nu isi are locul.

Iar pentru al doilea warning, trebuie sa te uiti ce parametri ai la functia "addcodes", ca tu folosesti doar unul (adica playerid), iar functia are mai multe argumente (sau mai putine, poate fi si cazul asta).

function addcodes(playerid, coinspoint)
{
    new FastString1[128],FastString2[128],FastString3[128],FastString4[128], var100[1024], string[1024], string2[1024];
    new Rstr[] = "QWERTYUIOPASDFGHJKLZXCVBNM";

    format(FastString1, 6, "%s", Rstr[random(sizeof(Rstr))]);
    format(FastString2, 6, "%s", Rstr[random(sizeof(Rstr))]);
    format(FastString3, 6, "%s", Rstr[random(sizeof(Rstr))]);
    format(FastString4, 6, "%s", Rstr[random(sizeof(Rstr))]);

     if(strlen(FastString1) !=5) return 1;
     if(strlen(FastString2) !=5) return 1;
     if(strlen(FastString3) !=5) return 1;
     if(strlen(FastString4) !=5) return 1;

      if(strfind(FastString1, " ", true) != -1) return 1;
      if(strfind(FastString2, " ", true) != -1) return 1;
      if(strfind(FastString3, " ", true) != -1) return 1;
      if(strfind(FastString4, " ", true) != -1) return 1;

      format(string, sizeof(string), "%s-%s-%s-%s", FastString1,FastString2,FastString3,FastString4);
      if(suntcodes(string)) return 1;

    mysql_format(SQL, var100, sizeof(var100), "INSERT INTO `luckycodes` (`code`) VALUES ('%s')",string);
    mysql_tquery(SQL,var100,"","");

    format(string2, sizeof(string2), "{008080}(Lucky codes){FFFFFF} Codul generat de tine este: %s-%s-%s-%s.", FastString1,FastString2,FastString3,FastString4);
    SCM(playerid,0xA60404FF, string2);
    return 1;
}

COMUNITATEA MEA DE RESURSE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spacer.png
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
www.codeup.ro / www.codeup.ro/forum

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.