Jump to content

Recommended Posts

Posted

Salut baieti si fete,am creat accest topic pentru ca am intampinat o mica problema si nu stiu sa o rezolv,si m-am gandit ca poate ma puteti ajuta.Este doar 1 rand de o comanda scurta !!!

Problema:Am si eu comanda /bonus,si am vrut sa adaug si un picador la aceasta comanda,dar am intampinat urmatoare problema

Error 035:Argument type matching ( argument 2 ) = Ma puteti ajuta?

Cateva define-uri ( culori ) ( COLOR_ROSUVV2) ,  ( COLOR_[PORTOCALIUV2) , )COLOR_ROZV2)

Cateva new-uri ( variabile presupn ) https://imgur.com/a/Snt7Uzi

 

Procesor ( YCMD )

Comanda :   YCMD:bonus(playerid, params[], help) {
    if(PlayerInfo[playerid][pLevel] >= 3) return SCM(playerid, COLOR_LIGHTRED, "Ai primit deja bonusul de inceput sau ai trecut de level 3!");
    PlayerInfo[playerid][pLevel] = 5;
    Update(playerid, pLevel);
    SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
    GivePlayerCash(playerid, 15000000);
    Update(playerid, pCashx);
    PlayerInfo[playerid][pPremiumPoints] += 100;
    Update(playerid, pPremiumPointsx);
    UpdateProgress(playerid, 0);
    GiveVehicle(playerid, 600);
    UpdateProgress(playerid, pCar);
    ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "[!] Bonus", "+5 level up [level 5]\n+100 premium points [/shop]\n+$15,000,000\n\nWelcome to the server, have fun!", "Close", "");
    return 1;
}

 

Eroarea mi-o da la ( UpdateProgress(playerid, pCar);

Sau la  ( GiveVehicle(playerid, 600); = 600 fiind id-ul Picadorului..

 

Am adaugat doar : GiveVehicle, 600);

                                   UpdateProgress(playerid, pCar);

 

Erroarea https://imgur.com/a/vdvaDqM

 

Ofer + 10...

 

Multumesc !

 

  • 4 weeks later...
Posted

YCMD:bonus(playerid,params[], help)
{
    new str[128];
    if(PlayerInfo[playerid][pLevel] != 1) return SCM(playerid, -1, "Ai folosit odata comanda /bonus nu o mai poti folosi inca odata!");
    if(IsPlayerConnected(playerid))
    {
            {
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            GivePlayerCash(playerid, 5000000);
            PlayerInfo[playerid][pLevel] = 3;
            PlayerInfo[playerid][pPremiumPoints] += 60;
              Update(playerid, pCashx);
            GiveVehicle(playerid, 411);
                Update(playerid, pLevelx);
            Update(playerid, pPremiumPointsx);
            mysql_query(SQL,str);
             ShowPlayerDialog(playerid, 3354, DIALOG_STYLE_MSGBOX, "Server Bonus", "{ffffff} Ai folosit comanda /bonus si ai primit:\n - Level 3\n - 5.000.000 $\n -{ffff00} 60 {ffffff}Puncte Premium, si o masina infernus","OK","");
        }
    }
    return 1;
}

 

Mai editezi tu pe acolo ce vrei

Posted (edited)
YCMD:bonus(playerid, params[], help)
{
    if(PlayerInfo[playerid][pLevel] >= 3) return SCM(playerid, COLOR_LIGHTRED, "Ai primit deja bonusul de inceput sau ai trecut de level 3!");
    PlayerInfo[playerid][pLevel] = 5;
    Update(playerid, pLevel);
    SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
    GivePlayerCash(playerid, 15000000);
    Update(playerid, pCashx);
    PlayerInfo[playerid][pPremiumPoints] += 100;
    Update(playerid, pPremiumPointsx);
    UpdateProgress(playerid, 0);
    GiveVehicle(playerid, 600);
    ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "[!] Bonus", "+5 level up [level 5]\n+100 premium points [/shop]\n+$15,000,000\n\nWelcome to the server, have fun!", "Close", "");
    return 1;
}

Cred ca problema e asta: UpdateProgress(playerid, pCar);

Masina se salveaza in functia GiveVehicle, acel updateprogress nu are cum sa fie asa deoarece iti actualizeaza progress barurile(level, job, etc). Daca folosesti functia Update nu ai niciunde acea variabila(pCar). Deci o poti scoate. Sper ca merge. Succes!

Edited by BaFFyJunior
Posted
Acum 7 minute, BaFFyJunior a spus:

YCMD:bonus(playerid, params[], help)
{
    if(PlayerInfo[playerid][pLevel] >= 3) return SCM(playerid, COLOR_LIGHTRED, "Ai primit deja bonusul de inceput sau ai trecut de level 3!");
    PlayerInfo[playerid][pLevel] = 5;
    Update(playerid, pLevel);
    SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
    GivePlayerCash(playerid, 15000000);
    Update(playerid, pCashx);
    PlayerInfo[playerid][pPremiumPoints] += 100;
    Update(playerid, pPremiumPointsx);
    UpdateProgress(playerid, 0);
    GiveVehicle(playerid, 600);
    ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "[!] Bonus", "+5 level up [level 5]\n+100 premium points [/shop]\n+$15,000,000\n\nWelcome to the server, have fun!", "Close", "");
    return 1;
}

Cred ca problema e asta: UpdateProgress(playerid, pCar);

Masina se salveaza in functia GiveVehicle, acel updateprogress nu are cum sa fie asa deoarece iti actualizeaza progress barurile(level, job, etc). Daca folosesti functia Update nu ai niciunde acea variabila(pCar). Deci o poti scoate. Sper ca merge. Succes!

acolo am gresit eu pentru ca e o comanda veche si o am de prin primele mele gamemode-uri (2015-2016)

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
×
×
  • 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.