Hey,ho
ich habe ein Problem undzwar lädt er das hier 20 30 50 mal ich wusste es weil ich es geprintet habe.
Hier mal der code:
for(new idx; idx<sizeof(HouseInfo); idx++)
{
format(query2, sizeof(query2), "SELECT * FROM `haussystem` WHERE `hID` = %d", idx);
mysql_query(query2);
mysql_store_result();
if(mysql_ping() == 0)
{
HouseInfo[idx][hEntrancex] = mysql_GetFloatByInt("haussystem", "hEntrancex", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hEntrancey] = mysql_GetFloatByInt("haussystem", "hEntrancey", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hEntrancez] = mysql_GetFloatByInt("haussystem", "hEntrancez", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hExitx] = mysql_GetFloatByInt("haussystem", "hExitx", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hExity] = mysql_GetFloatByInt("haussystem", "hExity", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hExitz] = mysql_GetFloatByInt("haussystem", "hExitz", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hExitz] = mysql_GetIntByInt("haussystem", "hHealthx", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hHealthy] = mysql_GetIntByInt("haussystem", "hHealthy", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hHealthz] = mysql_GetIntByInt("haussystem", "hHealthz", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hArmourx] = mysql_GetIntByInt("haussystem", "hArmourx", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hArmoury] = mysql_GetIntByInt("haussystem", "hArmoury", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hArmourz] = mysql_GetIntByInt("haussystem", "hArmourz", "hID",HouseInfo[idx][hID]);
strmid(HouseInfo[idx][hOwner], mysql_GetStringByInt("haussystem","hOwner","hID",h), 0, 256,256);
strmid(HouseInfo[idx][hDiscription], mysql_GetStringByInt("haussystem","hDiscription","hID",h), 0, 256,256);
HouseInfo[idx][hValue] = mysql_GetIntByInt("haussystem", "hValue", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hHel] = mysql_GetIntByInt("haussystem", "hHel", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hArm] = mysql_GetIntByInt("haussystem", "hArm", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hInt] = mysql_GetIntByInt("haussystem", "hInt", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hLock] = mysql_GetIntByInt("haussystem", "hLock", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hOwned] = mysql_GetIntByInt("haussystem", "hOwned", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hRooms] = mysql_GetIntByInt("haussystem", "hRooms", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hRent] = mysql_GetIntByInt("haussystem", "hRent", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hRentabil] = mysql_GetIntByInt("haussystem", "hRentabil", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hDate] = mysql_GetIntByInt("haussystem", "hDate", "hID",HouseInfo[idx][hID]);
HouseInfo[idx][hLevel] = mysql_GetIntByInt("haussystem", "hLevel", "hID",HouseInfo[idx][hID]);
}
mysql_free_result();
}