How do I make this update?
#1

As in, Make the house owner update, because it doesnt update if I /buyhouse then go back onto the pickup.

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    new string[256];

    for(new x = 0; x < MAX_HOUSES; x++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0, HouseEntX[x], HouseEntY[x], HouseEntZ[x]))
        {
            if(pickupid == HousePickup[x])
            {
                if(!(strcmp(HouseOwner[x], "nobody", true)))
                {
                    format(string, sizeof(string), "~r~For Sale : %s~n~~w~Price: $%d~n~~b~Type '/buyhouse' to purchase.", HouseName[x], HousePrice[x]);
                }
                else
                {
                    format(string, sizeof(string), "~g~Address:~w~ %s ~n~ ~g~Owner:~w~ %s", HouseName[x], HouseOwner[x]);
                }

                GameTextForPlayer(playerid, string, 3000, 5);
                break;
            }
        }
Reply
#2

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)