help me =D
#1

like when i create the first house of all id 0 it creates normally then when i pickup the money is 0 when i set it to more than 0Ђ why
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    new string[128];
    for(new i = 0; i < MAX_HOUSES; i++)
    {
        if(pickupid == PickupID[i])
        {
            if(HInfo[i][owned] == 1)
            {
                format(string,sizeof(string),"This house is owned by %s",HInfo[i][ownername]);
                SendClientMessage(playerid,0x05FA30FF,string);
            }
            else
            {
                format(string,sizeof(string),"This house if for sale, %d$",HInfo[i][price]);
                SendClientMessage(playerid,0xF4EF0BFF,string);
                break;
            }
        }
    }
    return 1;
}

has you can see the one that say
this house is for sale for 500$ is when i pickup the 2nd pickup
the one that says "this house is for sale for 0$" is the first house i created
Reply
#2

You didn't define the amount the house will be sold for?
Reply
#3

Quote:
Originally Posted by blackwave
Посмотреть сообщение
You didn't define the amount the house will be sold for?
what do you mean?
Reply
#4

Quote:
Originally Posted by blackwave
Посмотреть сообщение
You didn't define the amount the house will be sold for?
oh i get it, i did define it -.-
This forum requires that you wait 60 seconds between posts. Please try again in 6 seconds.
-.-
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)