MySQL
#8

New problem..
When I create house it is created nicely and saved nicely.. but every house is loaded as Camp House..
PHP код:
CreateHouses(id)
{
    if(
HouseInfo[id][hOwnerCheck] == 0)
    {
        new 
string[320];
        
format(stringsizeof(string), ""SERVERBLUE"House on sale\n"SERVERBLUE"Type: "WHITE"%s\n"SERVERBLUE"Price: "WHITE"%d\n"SERVERBLUE"Level: "WHITE"%d\n"SERVERBLUE"To buy house type /buyhouse"HouseType(HouseInfo[id][hType]), HouseInfo[id][hPrice], HouseInfo[id][hLevel]);
        
HouseLabel[id] = CreateDynamic3DTextLabel(string0x1D9F00AAHouseInfo[id][hEnterX], HouseInfo[id][hEnterY], HouseInfo[id][hEnterZ]+0.125.0___00__);
        
HousePickup[id] = CreateDynamicPickup(12731HouseInfo[id][hEnterX], HouseInfo[id][hEnterY], HouseInfo[id][hEnterZ]);
    }
    else if(
HouseInfo[id][hOwnerCheck] == 1)
    {
        new 
string[320], string2[220], string3[540];
        if(
HouseInfo[id][hRent] == 0)
        {
            
format(stringsizeof(string), ""SERVERBLUE"[ "WHITE"%s "SERVERBLUE"]\n"SERVERBLUE"Owner: "WHITE"%s\b"SERVERBLUE"Type: "WHITE"%d\n"HouseInfo[id][hDescription], HouseInfo[id][hOwnerName], HouseInfo[id][hType]);
            
format(string2sizeof(string2), ""SERVERBLUE"Level: "WHITE"%d\n"SERVERBLUE"Price: "WHITE"%d\n"SERVERBLUE"To enter press 'F' or 'ENTER'"HouseInfo[id][hLevel], HouseInfo[id][hPrice]);
            
format(string3sizeof(string3), "%s%s"stringstring2);
            
HouseLabel[id] = CreateDynamic3DTextLabel(string30x1D9F00AAHouseInfo[id][hEnterX], HouseInfo[id][hEnterY], HouseInfo[id][hEnterZ]+0.125.0___00__);
            
HousePickup[id] = CreateDynamicPickup(12731HouseInfo[id][hEnterX], HouseInfo[id][hEnterY], HouseInfo[id][hEnterZ]);
        }
        else if(
HouseInfo[id][hRent] == 1)
        {
            
format(stringsizeof(string), ""SERVERBLUE"[ "WHITE"%s "SERVERBLUE"]\n"SERVERBLUE"Owner: "WHITE"%s\b"SERVERBLUE"Type: "WHITE"%d\n"SERVERBLUE"Rent: "WHITE"%d$(/renthouse)"HouseInfo[id][hDescription], HouseInfo[id][hOwnerName], HouseInfo[id][hType], HouseInfo[id][hRentPrice]);
            
format(string2sizeof(string2), ""SERVERBLUE"Level: "WHITE"%d\n"SERVERBLUE"Price: "WHITE"%d\n"SERVERBLUE"To enter press 'F' or 'ENTER'"HouseInfo[id][hLevel], HouseInfo[id][hPrice]);
            
format(string3sizeof(string3), "%s%s"stringstring2);
            
HouseLabel[id] = CreateDynamic3DTextLabel(string30x1D9F00AAHouseInfo[id][hEnterX], HouseInfo[id][hEnterY], HouseInfo[id][hEnterZ]+0.125.0___00__);
            
HousePickup[id] = CreateDynamicPickup(12731HouseInfo[id][hEnterX], HouseInfo[id][hEnterY], HouseInfo[id][hEnterZ]);
        }
    }
    return 
1;
}
HouseType(id)
{
    new 
string[17];
    switch(
id)
    {
        case 
TYPE_CAMPstring "Camp House";
        case 
TYPE_SMALLstring "Small House";
        case 
TYPE_MEDIUMstring "Medium House";
        case 
TYPE_BIGstring "Big House";
        case 
TYPE_VILLAstring "Villa";
        default: 
string "Unknown";
    }
    return 
string;

They are loaded fine but only name is problem.. Any ideas>>
Name is hDescription
Reply


Messages In This Thread
MySQL - by Micko123 - 25.11.2016, 18:11
Re: MySQL - by Vince - 25.11.2016, 18:17
Re: MySQL - by Micko123 - 25.11.2016, 18:25
Re: MySQL - by Micko123 - 25.11.2016, 20:22
Re: MySQL - by Alvitr - 25.11.2016, 20:50
Re: MySQL - by Micko123 - 26.11.2016, 19:35
Re: MySQL - by Micko123 - 26.11.2016, 19:50
Re: MySQL - by Micko123 - 26.11.2016, 20:01
Re: MySQL - by Micko123 - 26.11.2016, 20:53

Forum Jump:


Users browsing this thread: 2 Guest(s)