18.08.2011, 02:34
So, whenever I include this function in my script, the script ceases to work. Comment it out, and everything is okay. Whats happening?!?!?! D:
Код:
stock LoadHouses(houseid) { mysql_query("SELECT * FROM houses"); mysql_store_result(); new row[128]; new field[17][32]; mysql_fetch_row_format(row, "|"); explode(row, field, "|"); mysql_free_result(); HInfo[houseid][pID] = strval(field[0]); HInfo[houseid][pX] = strval(field[1]); HInfo[houseid][pY] = strval(field[2]); HInfo[houseid][pZ] = strval(field[3]); HInfo[houseid][pIntX] = strval(field[4]); HInfo[houseid][pIntY] = strval(field[5]); HInfo[houseid][pIntZ] = strval(field[6]); HInfo[houseid][pInt] = strval(field[7]); HInfo[houseid][pPickup] = strval(field[8]); HInfo[houseid][pIcon] = strval(field[9]); HInfo[houseid][pWorld] = strval(field[10]); HInfo[houseid][pOwner] = strval(field[11]); HInfo[houseid][pOwned] = strval(field[12]); HInfo[houseid][pSlots] = strval(field[13]); HInfo[houseid][pZone] = strval(field[14]); HInfo[houseid][pPrice] = strval(field[15]); HInfo[houseid][pPark] = strval(field[16]); }