Jump to content

RazvaNeLL110

Membru
  • Posts

    19
  • Joined

  • Last visited

Posts posted by RazvaNeLL110

  1. (16873) : warning 213: tag mismatch: expected tag "Factions", but found none ("_")

    function RaportPoints(playerid) {
        new x, fid = PlayerInfo[playerid][pMember], rank = PlayerInfo[playerid][pRank];
        x = DynamicFactions[fid][rank-1];
        return x;
    }

     

  2. 1 minute ago, RazvaNeLL110 said:

    Cand dau referal imi arata ca sunt 0 playeri inregistrati pe referalul meu si defapt sun vreo 2.

     

    YCMD:myreferral(playerid, params[], help) {
        new szDialog[1200], szDialog2[256], string[256], szQuery[256], name[64], r, on;
        
        format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `Referral`='%d' ORDER BY `users`.`Level` DESC LIMIT 20", PlayerInfo[playerid][pSQLID]);
        new Cache: result = mysql_query(SQL, szQuery);    
        strcat(szDialog, "{FFB469}(+) Informatii{FFFFFF}\n");
        for(new i, x = cache_num_rows(); i < x; i++) {
            cache_get_field_content(i, "name", string); format(name, 64, string);

            new userID = GetPlayerID( name );
            if(userID != INVALID_PLAYER_ID) format(szDialog2, sizeof(szDialog2), "{1FA612}(Conectat){FFFFFF} %s (%d)\n", name, userID), on++;
            else format(szDialog2, sizeof(szDialog2), "{D60909}(Neconectat){FFFFFF} %s\n", name);
            strcat(szDialog, szDialog2);
            format(Selected[playerid][r], MAX_PLAYER_NAME, name);    
            r++;
        }    
        cache_delete(result);
        new title[64];
        format(title, sizeof(title), "My referrals (%d/%d)", on, r);
        ShowPlayerDialog(playerid, DIALOG_REFERRALS, DIALOG_STYLE_LIST, title, szDialog, "Ok", "Exit");
        return true;
    }

            case DIALOG_REFERRALS: {
                if(!response) return 1;
                new szQuery[256], szDialog[1024], Cache: result, money, rp, lvl, regdate[100], ore, name[100], szResult[256];
                
                if(listitem == 0)  {
                    format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `id`='%d'", PlayerInfo[playerid][pReferral]);
                    result = mysql_query(SQL, szQuery);
                    cache_get_field_content(0, "name", szResult); format(name, 100, szResult);

                    if(PlayerInfo[playerid][pReferral] != 0) format(szDialog, sizeof(szDialog),  "Ai fost adus pe comunitate de %s.\nTe-ai inregistrat pe data de %s\nCodul tau Referral este %d.", name, PlayerInfo[playerid][pRegistredDate], PlayerInfo[playerid][pSQLID]);
                    else format(szDialog, sizeof(szDialog),  "Nu ai fost adus pe comunitate de cineva.\nTe-ai inregistrat pe %s\nCodul tau Referral este %d.\nAi adus in total %d jucatori.", PlayerInfo[playerid][pRegistredDate], PlayerInfo[playerid][pSQLID], CountReferrals(playerid));                
                    ShowPlayerDialog(playerid, DIALOG_REFERRALS+1, DIALOG_STYLE_MSGBOX, "Referral info", szDialog, "Back", "Exit");            
                    return 1;
                }
                listitem --;
                format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `name`='%s'", Selected[playerid][listitem]);
                result = mysql_query(SQL, szQuery);
                cache_get_field_content(0, "RegisterDate", szResult); format(regdate, 100, szResult);
                cache_get_field_content(0, "Level", szResult); lvl = strval(szResult);
                cache_get_field_content(0, "ReferralRP", szResult); rp = strval(szResult);
                cache_get_field_content(0, "ReferralMoney", szResult); money = strval(szResult);
                cache_get_field_content(0, "ConnectedTime", szResult); ore = strval(szResult);            
                cache_delete(result);        
                format(szDialog, sizeof(szDialog), "Informatii despre %s\nInregistrat la data de: %s\nLevel: %d\nOre jucate: %d\nBani castigati de la el: $%s\nRP-uri castigate de la el: %d", Selected[playerid][listitem], regdate, lvl, ore, FormatNumber(money), rp);
                ShowPlayerDialog(playerid, DIALOG_REFERRALS+1, DIALOG_STYLE_MSGBOX, "Referral player", szDialog, "Back", "Exit");    
            }

  3. Cand dau referal imi arata ca sunt 0 playeri inregistrati pe referalul meu si defapt sun vreo 2.

     

    YCMD:myreferral(playerid, params[], help) {
        new szDialog[1200], szDialog2[256], string[256], szQuery[256], name[64], r, on;
        
        format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `Referral`='%d' ORDER BY `users`.`Level` DESC LIMIT 20", PlayerInfo[playerid][pSQLID]);
        new Cache: result = mysql_query(SQL, szQuery);    
        strcat(szDialog, "{FFB469}(+) Informatii{FFFFFF}\n");
        for(new i, x = cache_num_rows(); i < x; i++) {
            cache_get_field_content(i, "name", string); format(name, 64, string);

            new userID = GetPlayerID( name );
            if(userID != INVALID_PLAYER_ID) format(szDialog2, sizeof(szDialog2), "{1FA612}(Conectat){FFFFFF} %s (%d)\n", name, userID), on++;
            else format(szDialog2, sizeof(szDialog2), "{D60909}(Neconectat){FFFFFF} %s\n", name);
            strcat(szDialog, szDialog2);
            format(Selected[playerid][r], MAX_PLAYER_NAME, name);    
            r++;
        }    
        cache_delete(result);
        new title[64];
        format(title, sizeof(title), "My referrals (%d/%d)", on, r);
        ShowPlayerDialog(playerid, DIALOG_REFERRALS, DIALOG_STYLE_LIST, title, szDialog, "Ok", "Exit");
        return true;
    }

  4. Salut, ma poate ajuta cineva sa pun animatie din aceea la quest cu Y langa obiect si apoi langa masina? 

    linia: 

    hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
        if(SpecialQuest[playerid]) {
            if(newkeys & KEY_YES) {
                if(IsPlayerInAnyVehicle(playerid))
                    return true;

                new
                     Float:x, Float:y, Float:z;

                GetPlayerObjectPos(playerid, questObject[playerid], x, y, z);

                if(!PlayerToPoint(3.0, playerid, x, y, z))
                    return true;

                PlayerInfo[playerid][quest_objects] ++;
                UpdateVar(playerid, "quest_objects", PlayerInfo[playerid][quest_objects]);

                RemovePlayerMapIcon(playerid, 50);
                DestroyPlayerObject(playerid, questObject[playerid]);
                
                if(CheckObjects(playerid) == QUEST_OBJECTS) {
                    DestroyVehicle(questVehicle[playerid]);
                    questVehicle[playerid] = 0;
                    SpecialQuest[playerid] = 0;

                    gString[0] = EOS;
                    format(gString, sizeof(gString), "(( Info: %s a terminat quest-ul special si a primit un premiu! ))", GetName(playerid));
                    SendClientMessageToAll(COLOR_CLIENT, gString);

                    new 
                        rand_money = 2000000 + random(5000000),
                        rand_rp = 10 + random(30), 
                        rand_pp = 20 + random(20);

                    GivePlayerCash(playerid, 1, rand_money);    
                    PlayerInfo[playerid][pExp] += rand_rp;
                    PlayerInfo[playerid][pPremiumPoints] += rand_pp;

                    Update(playerid, pCashx);    
                    Update(playerid, pRP);
                    Update(playerid, pPremiumPointsx);

                    gString[0] = EOS;
                    format(gString, sizeof(gString), "Felicitari! Ai primit $%s, %d respect points si %d puncte premium", FormatNumber(rand_money), rand_rp, rand_pp);
                    SCM(playerid, COLOR_YELLOW, gString);
                }
                else set_quest_point(playerid);
            }
        }
        return true;
    }

  5. Buna ziua. M-am decis sa imi fac un sv

    Si toti scripteri cu care am vb vreau bani pe loc

    Dau si bani

    Dar momentan vr sa vad cat tine. Va rog daca m-ati putea ajuta bani ii dau in aprlie dau cat vreti

    Daca sunteti amabili sa ma ajutati va rog sa imi da ti un mesaj la adresa de mail de mai sus sau pe facebook la Razvan Taulescu

     

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