Coordinates bug
#4

PHP код:
stock LoadHouses()
{
    new 
hinfo[21][32];
    new 
string[256];
    new 
File:file fopen("ODA/houses.cfg"io_read);
    if(
file)
    {
        new 
idx 1;
        while(
idx MAX_HOUSES)
        {
            
fread(filestring);
            
split(stringhinfo'|');
            
HouseInfo[idx][hLevel] = strval(hinfo[0]);
            
HouseInfo[idx][hPrice] = strval(hinfo[1]);
            
HouseInfo[idx][hStatus] = strval(hinfo[2]);
            
format(HouseInfo[idx][hOwner], 32"%s"hinfo[3]);
            
HouseInfo[idx][hX] = floatstr(hinfo[4]);
            
HouseInfo[idx][hY] = floatstr(hinfo[5]);
            
HouseInfo[idx][hZ] = floatstr(hinfo[6]);
            
HouseInfo[idx][hMoney] = strval(hinfo[7]);
            if(
HouseInfo[idx][hLevel])
            {
                
HouseInfo[idx][hPickup] = CreateDynamicPickup(12731HouseInfo[idx][hX], HouseInfo[idx][hY], HouseInfo[idx][hZ], 0);
                if(!
strcmp("The State"HouseInfo[idx][hOwner])) format(stringsizeof(string), "[House ID: %d, House (Lvl: %d)]\n Owner: %s\n Status: For Sale\n$%d"idxHouseInfo[idx][hLevel], HouseInfo[idx][hOwner], HouseInfo[idx][hPrice]);
                else 
format(stringsizeof(string), "[House ID: %d, House (Lvl: %d)]\n Owner: %s\n Status: %s"idxHouseInfo[idx][hLevel], HouseInfo[idx][hOwner], RHS(idx));
                
HouseInfo[idx][hText] = CreateDynamic3DTextLabel(string, -1HouseInfo[idx][hX], HouseInfo[idx][hY], HouseInfo[idx][hZ]+0.315);

            }
            
idx++;
        }
    }
    print(
"Houses loaded successfully.");
    return 
1;

@Meller
Well sorry to inform you but i use what i can manage... Doesn't make sense for me to be posting for help everyday cause i dont know shit about SQL
Reply


Messages In This Thread
Coordinates bug - by 1fret - 09.04.2017, 17:29
Re: Coordinates bug - by khRamin78 - 09.04.2017, 19:39
Re: Coordinates bug - by Meller - 09.04.2017, 20:49
Re: Coordinates bug - by 1fret - 09.04.2017, 21:04
Re: Coordinates bug - by GangstaSunny. - 09.04.2017, 21:51
Re: Coordinates bug - by 1fret - 09.04.2017, 22:08
Re: Coordinates bug - by khRamin78 - 09.04.2017, 22:23
Re: Coordinates bug - by khRamin78 - 09.04.2017, 22:29
Re: Coordinates bug - by GangstaSunny. - 09.04.2017, 22:35
Re: Coordinates bug - by Nero_3D - 09.04.2017, 22:38

Forum Jump:


Users browsing this thread: 1 Guest(s)