R40 HELP!!!
#1

Hello guys, please help me! I have problem with my hosue loading!
The code (OnGameModeInit):
PHP код:
mysql_format(zMySQLquerysizeof(query), "SELECT * FROM `houses`");
    
mysql_query(zMySQLquery);
    for(new 
1cache_num_rows()+1h++)
    {
          
mysql_format(zMySQLquerysizeof(query), "SELECT * FROM `houses` WHERE `ID` = %d"h);
          
mysql_tquery(zMySQLquery"LoadHouses""i"h);
        if(
strcmp(HouseInfo[h][hOwner], "No"true) == 0)
        {
            
HouseInfo[h][hPickup] = CreatePickup(12731HouseInfo[h][hX], HouseInfo[h][hY], HouseInfo[h][hZ]);
            
HouseInfo[h][hIcon] = CreateDynamicMapIcon(HouseInfo[h][hX], HouseInfo[h][hY], HouseInfo[h][hZ], 310,0,0);
        }
        else
        {
            
HouseInfo[h][hPickup] = CreatePickup(195221HouseInfo[h][hX], HouseInfo[h][hY], HouseInfo[h][hZ]);
            
HouseInfo[h][hIcon] = CreateDynamicMapIcon(HouseInfo[h][hX], HouseInfo[h][hY], HouseInfo[h][hZ], 320,0,0);
        }
    } 
And here is my callback for laoding:
PHP код:
forward LoadHouses(houseid);
    public 
LoadHouses(houseid)
    {
        new 
Float:test;
        
cache_get_value_name_float(houseid"X"test);
        
printf("%f"test);
    } 
Output:
Quote:

0.000000
0.000000
0.000000

(they are three, because I have 3 rows created)
Reply


Messages In This Thread
R40 HELP!!! - by Kraeror - 06.01.2018, 06:59
Re: R40 HELP!!! - by MEW273 - 06.01.2018, 07:35
Re: R40 HELP!!! - by Kraeror - 06.01.2018, 07:41
Re: R40 HELP!!! - by MEW273 - 06.01.2018, 07:44
Re: R40 HELP!!! - by Kraeror - 06.01.2018, 07:48
Re: R40 HELP!!! - by MEW273 - 06.01.2018, 07:52
Re: R40 HELP!!! - by Kraeror - 06.01.2018, 07:56
Re: R40 HELP!!! - by Kraeror - 06.01.2018, 07:59
Re: R40 HELP!!! - by MEW273 - 06.01.2018, 08:00
Re: R40 HELP!!! - by Kraeror - 06.01.2018, 08:03

Forum Jump:


Users browsing this thread: 1 Guest(s)