Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

11 answers to this question

Recommended Posts

  • 0
Posted (edited)
12 hours ago, LeonardPWN said:

Arata ne un cod sursa ceva sa ne putem da seama de la ce este problema.

.

Edited by [i]Stefan
  • 0
Posted (edited)
13 hours ago, MiritaXD said:

Poate fi de la versiunea mysql sau nu e ceva bine. Arata un cod

.

Edited by [i]Stefan
  • 0
Posted (edited)

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
  • 0
Posted
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

  • 0
Posted (edited)
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
  • 0
Posted
2 hours ago, valivaly96 said:

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

frate sunt pentru ca am intrat pe sv merge ok cum sa nu fiu!

  • 0
Posted
2 hours ago, MiritaXD said:

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

pai ce ce pot sa-i fac?

  • 0
Posted
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);
}

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.