Jump to content

Question

Posted

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

4 answers to this question

Recommended Posts

  • 0
Posted

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

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

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.