17.12.2011, 21:39
Ok so i got new info its not that code ABOVE... Its the Housing_loadall(); in ongamemodeinit... When i use the createhouse cmd when thats there the command isnt working... So anyone know whats wrong? This is the function where i DONT get any errors from :S
pawn Код:
Housing_LoadAll()
{
for (new HouseID = 1; HouseID < MAX_HOUSES; HouseID++)
{
new string[128];
format(string, sizeof(string), "SELECT `HouseID` = '%i' FROM Houses", HouseID);
mysql_query(string);
mysql_store_result();
// Loop through all houses and try to load them
// Try to load the file and check if it was succesfully loaded (file exists)
if (HouseFile_Load(HouseID) == 1)
{
// Add a pickup and 3DText for this house
House_CreateEntrance(HouseID);
// Count the amount of houses that are loaded
TotalHouses++;
}
}
return 1;
}