housereload no call?
#1

Hello

So here housereload is not called, it is since I changed my function to use entry etc, so look for yourself, I put in bold that is not "called" (which basically loads not)

pawn Код:
public LoadSQLProperty() // v2 opak
{
    mysql_query("SELECT * FROM srp_players_houses");
    mysql_store_result();
    if(!mysql_num_rows()) return mysql_free_result(), 1;
    new field[256], entry;
    while(mysql_retrieve_row())
    {
        mysql_get_field("ent_x", field); HouseInfo[entry][hEntrancex] = floatstr(field);
        mysql_get_field("ent_y", field); HouseInfo[entry][hEntrancey] = floatstr(field);
        mysql_get_field("ent_z", field); HouseInfo[entry][hEntrancez] = floatstr(field);
       
        mysql_get_field("ext_x", field); HouseInfo[entry][hExitx] = floatstr(field);
        mysql_get_field("ext_y", field); HouseInfo[entry][hExity] = floatstr(field);
        mysql_get_field("ext_z", field); HouseInfo[entry][hExitz] = floatstr(field);
       
        mysql_get_field("owner", HouseInfo[entry][hOwner]);


        mysql_get_field("price", field); HouseInfo[entry][hValue] = strval(field);
        mysql_get_field("interior", field); HouseInfo[entry][hInt] = strval(field);
        mysql_get_field("locked", field); HouseInfo[entry][hLock] = strval(field);
        mysql_get_field("owned", field); HouseInfo[entry][hOwned] = strval(field);
        mysql_get_field("rent", field); HouseInfo[entry][hRent] = strval(field);


       

        mysql_get_field("locataires", field); HouseInfo[entry][hLoc] = strval(field);
       
        mysql_get_field("edited", field); HouseInfo[entry][hEdited] = strval(field);
        mysql_get_field("IntX", field); HouseInfo[entry][hIntX] = strval(field);
        mysql_get_field("VW", field); HouseInfo[entry][hVW] = strval(field);
        mysql_get_field("Appart", field); HouseInfo[entry][hAppart] = strval(field);

        [B]if(housereload==1)
        {
            printf("UpdateHouseLabel");
            UpdateHouseLabel(entry, true);
            UpdateHousePickup(entry);
        }[/B]
        entry++;
    }
    housereload=1;
    return mysql_free_result(), 1;
}
thx
Reply
#2

uppp
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)