Jump to content
  • 0

Cum pot muta un sistem-ul de billboard


Question

Posted

Salut , cum pot muta sistemul de billboard din bluffsv3 , intr-un gm gen bhood , sunt unele chestii pe care nu le gasesc in acest gamemode de ex nu stiu unde il pot pune pe asta.sper sa ma ajute cineva , multumesc

Quote

    format(query, sizeof(query), "SELECT * FROM `billboards` WHERE `time` < '%d' AND `time`!='0' ORDER BY `ID`",gettime());
    new Cache: stringresult11 = mysql_query(SQL, query);
    new billsrep = cache_get_row_count();
       for(new pk = 1; pk <= billsrep; pk++)
    {
        new billid,ownerbill[64];
        billid = cache_get_field_content_int(0, "ID");
        cache_get_field_content(0, "BillOwner", ownerbill, SQL, 64);
        format(bBill[billid][bBillOwner], 64, "AdmBot");
        format(bBill[billid][bBillText], 128, "bluffs.ro");
        bBill[billid][bBillTime]                        = 0;
        bBill[billid][bBillTextSize]                    = 25;
        DestroyBillBoard(billid);
        foreach(new id : Player)
        {
            if(strcmp(PlayerInfo[id][pNormalName],ownerbill,true) == 0)
            {
                new stringz2[128];
                format(stringz2,sizeof(stringz2), "(Info){FFFFFF} Your billboard (#%d) was expired.",billid);
                SendClientMessage(id, COLOR_JOB, stringz2);
                PlayerInfo[id][pBillboard] = 0;
            }
        }
        mysql_format(SQL,var100, sizeof(var100), "UPDATE `users` SET `Billboard`='0' WHERE `name`='%s'", ownerbill);
        mysql_tquery(SQL,var100,"","");

        mysql_format(SQL,var100, sizeof(var100), "UPDATE `billboards` SET `BillOwner`='AdmBot',`BillText`='bluffs.ro',`time`='0',`BillTextSize`='25' WHERE `ID`='%d'",billid);
        mysql_tquery(SQL,var100,"","");
    }
    cache_delete(stringresult11);

 

3 answers to this question

Recommended Posts

  • 0
Posted

Dupa cum vezi acel billboard este resetat, se poate presupune ca ar trebui sa fie o functie/un timer. Cel mai bine e sa faci tu un sistem decat sa iei altele incomplete.

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.