Strange, Weird bug regarding text's/pickups.
#1

The pickup you can see below is a Faction Pickup: It shouldn't display the code here but only on the houses...


It seems to be executing this code:

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

    for(new i = 0; i < MAX_HOUSES; i++)
    {
        if(pickupid == HousePickup[i])
        {
            if(!(strcmp(HouseOwner[i], "nobody", true)))
            {
                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;
}
Can someone help and explain why this is happening?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)