mysql loading houses
#3

Thank you , now i have created this public to load my textdrwas for the houses , but for some reason they do not appear ingame .
PHP код:
forward CreateTXD();
public 
CreateTXD()
{    
    new 
PropertyString[256];
    
printf("Merge");
    for(new 
1<= MAX_HOUSES i++)
    {
        if(
HouseInfo[i][hOwned] == 0)
        {
            
Delete3DTextLabel(HouseLabel[i]);
            
format(PropertyStringsizeof(PropertyString),"{347235}House {FFFFFF}%d \n{347235}Aceasta casa este de vanzare ! \nDescriere: {FFFFFF}%s \n{347235}Pret: {FFFFFF}$%s \n{347235}Level: {FFFFFF}%d \n{347235}to buy this house type /buyhouse",HouseInfo[i][hID],HouseInfo[i][hDiscription],HouseInfo[i][hPrice],HouseInfo[i][hLevel]);
            
HouseLabel[i] = Create3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ],0,1);
        }
        else if(
HouseInfo[i][hOwned] == 1)
        {
            if(
HouseInfo[i][hRentabil] == 1)
            {
                
Delete3DTextLabel(HouseLabel[i]);
                
format(PropertyStringsizeof(PropertyString),"{FFFFFF}%s\n {347235}House {FFFFFF}%d \n{347235}Aceasta casa ii apartine lui  {FFFFFF}%s \n{347235}Rent: {FFFFFF}$%s \n{347235}Level: {FFFFFF}%d \n{347235}to rent a room type /rentroom",HouseInfo[i][hDiscription],HouseInfo[i][hID],HouseInfo[i][hOwner],HouseInfo[i][hRentPrice],HouseInfo[i][hLevel]);
                
HouseLabel[i] = Create3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ],0,1);
            }
            else
            {
                
Delete3DTextLabel(HouseLabel[i]);
                
format(PropertyStringsizeof(PropertyString),"{FFFFFF}%s\n {347235}House {FFFFFF}%d \n{347235}Aceasta casa ii apartine lui {FFFFFF}%s \n{347235}Level: {FFFFFF}%d",HouseInfo[i][hDiscription],HouseInfo[i][hID],HouseInfo[i][hOwner], HouseInfo[i][hLevel]);
                
HouseLabel[i] = Create3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ],0,1);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
mysql loading houses - by TheDarkBlade - 24.09.2016, 06:35
Re: mysql loading houses - by Jstylezzz - 24.09.2016, 07:35
Re: mysql loading houses - by TheDarkBlade - 24.09.2016, 08:10
Re: mysql loading houses - by Jstylezzz - 24.09.2016, 08:53
Re: mysql loading houses - by TheDarkBlade - 24.09.2016, 09:21
Re: mysql loading houses - by Jstylezzz - 24.09.2016, 10:06
Re: mysql loading houses - by TheDarkBlade - 24.09.2016, 14:18
Re: mysql loading houses - by TheDarkBlade - 24.09.2016, 16:49
Re: mysql loading houses - by Jstylezzz - 24.09.2016, 19:03
Re: mysql loading houses - by TheDarkBlade - 25.09.2016, 07:40

Forum Jump:


Users browsing this thread: 2 Guest(s)