So Many Problems
#5

Use mysql_debug(1); on OnGamemodeInit. Also, why do you have houseid if you are just retrieving the first row of the table. Add a ID to the table and use it in the query so you can select specific houses. Or do this

pawn Код:
stock LoadHouses()
{
    mysql_query("SELECT * FROM houses");
    mysql_store_result();

    new row[128];
    new field[17][32], Hid;

        while(mysql_fetch_row_format(row, "|"))
        {
             explode(row, field, "|");
             HInfo[Hid][pID] = strval(field[0]);
             HInfo[Hid][pX] = strval(field[1]);
             HInfo[Hid][pY] = strval(field[2]);
             HInfo[Hid][pZ] = strval(field[3]);
             HInfo[Hid][pIntX] = strval(field[4]);
             HInfo[Hid][pIntY] = strval(field[5]);
             HInfo[Hid][pIntZ] = strval(field[6]);
             HInfo[Hid][pInt] = strval(field[7]);
             HInfo[Hid][pPickup] = strval(field[8]);
             HInfo[Hid][pIcon] = strval(field[9]);
             HInfo[Hid][pWorld] = strval(field[10]);
             HInfo[Hid][pOwner] = strval(field[11]);
             HInfo[Hid][pOwned] = strval(field[12]);
             HInfo[Hid][pSlots] = strval(field[13]);
             HInfo[Hid][pZone] = strval(field[14]);
             HInfo[Hid][pPrice] = strval(field[15]);
             HInfo[Hid][pPark] = strval(field[16]);
        }
    mysql_free_result();
    return 1;
}
Reply


Messages In This Thread
So Many Problems - by Storm203 - 18.08.2011, 02:34
Re: So Many Problems - by Backwardsman97 - 18.08.2011, 02:38
Re: So Many Problems - by Storm203 - 18.08.2011, 02:40
Re: So Many Problems - by Storm203 - 18.08.2011, 04:19
Re: So Many Problems - by [HiC]TheKiller - 18.08.2011, 06:10

Forum Jump:


Users browsing this thread: 2 Guest(s)