Jump to content

[REZOLVAT] Problema CMD


GGS
 Share

Recommended Posts

  • Username:Mihail
  • Problema întălnită:Pica sv de la comanda
  • Detalii despre problemă:pica sv de la comanda
  • Ce ai încercat să faci înainte să postezi?:nimic
  • Cod sursă (recomandat pastebin.com) :YCMD:addluckycode(playerid, params[], help)
    {
        if(PlayerInfo[playerid][pAdmin] >= 4)
        {
            addcodes(playerid);// aici e warn
        return 1;

        }
    }
  • Alte detalii:warning 202: number of arguments does not match definition
Link to comment
Share on other sites

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;
}
function DestroyWoodObject(playerid) {
    for(new i = 0; i < 7; i++) {
        if(WoodObject[playerid] != 0) DestroyDynamicObject(WoodObject[playerid]), WoodObject[playerid] = 0;
    }    
    return 1;
}

 

Link to comment
Share on other sites

Nu stiu ce vrei sa faci dar..

YCMD:addluckycode(playerid, params[], help)
{
    if(PlayerInfo[playerid][pAdmin] >= 4)
    {
        addcodes(playerid, 1);
    return 1;
    }
}

Incearca acum.

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...