31.01.2013, 07:35
Привет всем. Прошу помощи.
Начал писать сис-му домов на mysql но столкнулся с такой проблемой.
В логах все нормально но дома не создаются подскажите в чем у меня у болбеса трабл.
Спасибо всем за ранее
Начал писать сис-му домов на mysql но столкнулся с такой проблемой.
PHP код:
OnGameModeinit
format(query,sizeof(query),"SELECT * FROM `house`");
mysql_function_query(sqlsamp, query, true, "LoadHouses", "", "");
PHP код:
forward LoadHouses();
public LoadHouses()
{
new rows,fields;
cache_get_data(rows, fields);
new temp[128];
new news[50];
new str[128];
for(new h=0;h<rows;h++)
{
cache_get_row(h, 1, temp);
HouseInfo[h][hEntrancex] = floatstr(temp);
cache_get_row(h, 2, temp);
HouseInfo[h][hEntrancey] = floatstr(temp);
cache_get_row(h, 3, temp);
HouseInfo[h][hEntrancez] = floatstr(temp);
if(HouseInfo[h][hOwned] == 0)
{
HouseInfo[h][hPickup] = CreatePickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],-1);
pickups++;
HouseInfo[h][hMIcon] = CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 31, COLOR_WHITE,0, -1, -1, 400.0);
}
if(HouseInfo[h][hOwned] == 1)
{
HouseInfo[h][hPickup] = CreatePickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],-1);
pickups++;
HouseInfo[h][hMIcon] = CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 32, COLOR_WHITE,0, -1, -1, 400.0);
}
}
return 1;
}
Quote:
[12:51:39] >> mysql_connect(localhost, root, samp, ******) on port 3306 [12:51:39] CMySQLHandler::CMySQLHandler() - constructor called. [12:51:39] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "samp" | Username: "root" [12:51:39] CMySQLHandler::Connect() - Connection was successful. [12:51:39] CMySQLHandler::Connect() - Auto-Reconnect has been enabled. [12:51:39] >> mysql_set_charset( Connection handle: 1 ) [12:51:39] [12:51:39] ** MySQL Debugging enabled (01/31/13) [12:51:39] [12:51:39] >> mysql_query_callback( Connection handle: 1 ) [12:51:39] Passing query SELECT * FROM `house` | [12:51:39] ProcessQueryThread(LoadHouses) - Query was successful. (SELECT * FROM `house`) [12:51:39] ProcessQueryThread(LoadHouses) - Data caching enabled. [12:51:39] CMySQLHandler::StoreResult() - Result was stored. [12:51:39] CMySQLHandler::FreeResult() - Result was successfully free'd. [12:51:39] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick() [12:51:39] LoadHouses() - Threaded function called. [12:51:39] >> cache_get_data( Connection handle: 1 ) [12:51:39] ProcessTick() - The cache has been cleared. |
Спасибо всем за ранее