Jump to content
  • 0

Problema!


StefanAdv

Question

11 answers to this question

Recommended Posts

  • 0

De aici pleaca problema , cum pot rezolva? ca am scos asta si nu mai dadea errori dar nu se puneau pe sv casele/bizurile etc asa ca am bagato inapoi se puneau dar iar dadea warningurile alea!

 

public LoadSystems()
{
    new query[128];
    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `houses`");
    mysql_tquery(SQL, query, "LoadProperty", "");

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `bizz`");
    mysql_tquery(SQL, query, "LoadBizz", "");

    LoadTurfs();
    for(new i = 0; i < sizeof(TurfInfo); i++)
    {
         Turfs = GangZoneCreateEx(TurfInfo[zMinX],TurfInfo[zMinY],TurfInfo[zMaxX],TurfInfo[zMaxY],TurfInfo[zID],1.0);
    }

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `factions`");
    mysql_tquery(SQL, query, "LoadDynamicFactions", "");

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `clans`");
    mysql_tquery(SQL, query, "LoadClanInfo", "");

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `cars`");
    mysql_tquery(SQL, query, "LoadCar", "");

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `stock`");
    mysql_tquery(SQL, query, "LoadStock", "");
}

Edited by [i]Stefan
Link to comment
Share on other sites

  • 0
1 oră în urmă, Stefan a spus:

De aici pleaca problema , cum pot rezolva? ca am scos asta si nu mai dadea errori dar nu se puneau pe sv casele/bizurile etc asa ca am bagato inapoi se puneau dar iar dadea warningurile alea!

 

public LoadSystems()
{
    new query[128];
    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `houses`");
    mysql_tquery(SQL, query, "LoadProperty", ""); 

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `bizz`");
    mysql_tquery(SQL, query, "LoadBizz", "");

    LoadTurfs();
    for(new i = 0; i < sizeof(TurfInfo); i++)
    {
         Turfs = GangZoneCreateEx(TurfInfo[zMinX],TurfInfo[zMinY],TurfInfo[zMaxX],TurfInfo[zMaxY],TurfInfo[zID],1.0);
    }

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `factions`");
    mysql_tquery(SQL, query, "LoadDynamicFactions", "");

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `clans`");
    mysql_tquery(SQL, query, "LoadClanInfo", "");

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `cars`");
    mysql_tquery(SQL, query, "LoadCar", "");

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `stock`");
    mysql_tquery(SQL, query, "LoadStock", "");
}

Esti sigur ca esti conectat la baza de date, pt ca acest cod pare in regula

Link to comment
Share on other sites

  • 0
Acum 1 oră, Stefan a spus:

De aici pleaca problema , cum pot rezolva? ca am scos asta si nu mai dadea errori dar nu se puneau pe sv casele/bizurile etc asa ca am bagato inapoi se puneau dar iar dadea warningurile alea!

 

public LoadSystems()
{
    new query[128];
    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `houses`");
    mysql_tquery(SQL, query, "LoadProperty", "");

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `bizz`");
    mysql_tquery(SQL, query, "LoadBizz", "");

    LoadTurfs();
    for(new i = 0; i < sizeof(TurfInfo); i++)
    {
         Turfs = GangZoneCreateEx(TurfInfo[zMinX],TurfInfo[zMinY],TurfInfo[zMaxX],TurfInfo[zMaxY],TurfInfo[zID],1.0);
    }

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `factions`");
    mysql_tquery(SQL, query, "LoadDynamicFactions", "");

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `clans`");
    mysql_tquery(SQL, query, "LoadClanInfo", "");

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `cars`");
    mysql_tquery(SQL, query, "LoadCar", "");

    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `stock`");
    mysql_tquery(SQL, query, "LoadStock", "");
}

Normal că nu mai primești erorii, server-ul nu mai acceseaza acele funcții

Edited by MiritaXD
Link to comment
Share on other sites

  • 0
47 minutes ago, MiritaXD said:

arata functia LoadProperty

public LoadProperty()
{
    housess = cache_num_rows();
    for(new i = 1; i <= housess; i++)
    {
        new h = i - 1;
        HouseInfo[hID]                           = cache_get_field_content_int(h, "ID");
           HouseInfo[hEntrancex]                    = cache_get_field_content_float(h, "Entrancex");
        HouseInfo[hEntrancey]                    = cache_get_field_content_float(h, "Entrancey");
        HouseInfo[hEntrancez]                    = cache_get_field_content_float(h, "Entrancez");
        HouseInfo[hExitx]                        = cache_get_field_content_float(h, "Exitx");
        HouseInfo[hExity]                        = cache_get_field_content_float(h, "Exity");
        HouseInfo[hExitz]                        = cache_get_field_content_float(h, "Exitz");
        cache_get_field_content(h, "Owner", HouseInfo[hOwner], SQL, 130);
        cache_get_field_content(h, "Discription", HouseInfo[hDiscription], SQL, 130);
        HouseInfo[hValue]                        = cache_get_field_content_int(h, "Value");
        HouseInfo[hHel]                          = cache_get_field_content_int(h, "Hel");
        HouseInfo[hArm]                          = cache_get_field_content_int(h, "Arm");
        HouseInfo[hInterior]                     = cache_get_field_content_int(h, "Interior");
        HouseInfo[hLock]                         = cache_get_field_content_int(h, "Lockk");
        HouseInfo[hOwned]                        = cache_get_field_content_int(h, "Owned");
        HouseInfo[hRent]                         = cache_get_field_content_int(h, "Rent");
        HouseInfo[hRentabil]                     = cache_get_field_content_int(h, "Rentabil");
        HouseInfo[hTakings]                      = cache_get_field_content_int(h, "Takings");
        HouseInfo[hLevel]                        = cache_get_field_content_int(h, "Level");
        HouseInfo[hVirtual]                      = cache_get_field_content_int(h, "Virtual");
        CreateDynamicMapIcon(HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez], 31, COLOR_WHITE, 0, -1, -1, 1000);
    }
    for(new i = 1; i <= housess; i++)
    {
        OnPropTextdrawUpdate(1, i);
    }
    printf("Houses: %d", housess);
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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