Weirdest thing in the world.
#1

I will post code when necessary:

Can someone tell me why this happens:

My houses load the pickups, names correctly, but the text doesnt appear saying for sale, but it appears on the faction pickup!? :S its so strange!! I can't get my head around it.

Loading Factions:

http://pastebin.com/A73G0An2

Loading Houses:

http://pastebin.com/HtrQnfR3

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    new string[256];
   
    for(new i = 1; i < MAX_HOUSES; i++)
    {
        if(pickupid == HousePickup[i])
        {
            if(!strcmp(HouseOwner[i], "Nobody", true && HousePrice[i] >= 1))
            {
                format(string, sizeof(string), "~r~For Sale : %s~n~~w~Price: %d~n~~b~Type '/buyhouse' to purchase.", HouseName[i], HousePrice[i]);
            }
            else
            {
                format(string, sizeof(string), "Address: %s ~n~ Owner: %s", HouseName[i], HouseOwner[i]);
            }
           
            GameTextForPlayer(playerid, string, 3000, 5);
            break;
        }
    }
    return 1;
}
This might help.

Reply


Messages In This Thread
Weirdest thing in the world. - by Dokins - 20.11.2011, 19:03
Re: Weirdest thing in the world. - by DreamOnIt - 20.11.2011, 19:07
Re: Weirdest thing in the world. - by Dokins - 20.11.2011, 19:10
Re: Weirdest thing in the world. - by Dokins - 20.11.2011, 19:21
Re: Weirdest thing in the world. - by Dokins - 20.11.2011, 22:32
Re: Weirdest thing in the world. - by IceCube! - 20.11.2011, 22:38
Re: Weirdest thing in the world. - by Dokins - 21.11.2011, 15:40
Re: Weirdest thing in the world. - by Psymetrix - 21.11.2011, 15:45
Re: Weirdest thing in the world. - by System64 - 21.11.2011, 15:51
Re: Weirdest thing in the world. - by Psymetrix - 21.11.2011, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)