[HELP] PICKUP'S PROBLEM
#6

here ,
Before

Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
	{
		if(HouseInfo[h][hOwned] == 0)
		{
            Create3DTextLabel("[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75, 25.0, 0);
			HouseInfo[h][hPickupID]=CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
		if(HouseInfo[h][hOwned] == 1)
		{
            Create3DTextLabel("[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75, 25.0, 0);
			HouseInfo[h][hPickupID]=CreateDynamicPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
	}
After
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        for(new h = 0; h < sizeof(HouseInfo); h++)
        {
            if(HouseInfo[h][hOwned] == 0)
            {
                if(HouseInfo[h][hSetted] == 1)
                {
                    if(IsPlayerInRangeOfPoint(i, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
                    {
                        SetPlayerCheckpoint(i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 5.0);
                    }
                }
            }
            else
            {
                format(PropertyString,sizeof(PropertyString),"House is Owned by %s \n House ID: %d \n Rent Price: $%d \n Description: %s \n To Rent Type /rentroom", HouseInfo[h][hOwner],HouseInfo[h][hWorld], HouseInfo[h][hRent], HouseInfo[h][hDiscription]);
                HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
                HousePickup[h] = CreateDynamicPickup(1272, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            }
        }
    }
}
ERRORS
Код:
C:\Documents and Settings\Jaber\Bureau\UnlimitedRP\UnlimitedRP\gamemodes\U-RP.pwn(6076) : error 017: undefined symbol "hSetted"
C:\Documents and Settings\Jaber\Bureau\UnlimitedRP\UnlimitedRP\gamemodes\U-RP.pwn(6086) : error 017: undefined symbol "PropertyString"
C:\Documents and Settings\Jaber\Bureau\UnlimitedRP\UnlimitedRP\gamemodes\U-RP.pwn(6086) : error 017: undefined symbol "PropertyString"
C:\Documents and Settings\Jaber\Bureau\UnlimitedRP\UnlimitedRP\gamemodes\U-RP.pwn(6086) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Jaber\Bureau\UnlimitedRP\UnlimitedRP\gamemodes\U-RP.pwn(6086) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply


Messages In This Thread
[HELP] PICKUP'S PROBLEM - by Jaber_Brown - 29.01.2011, 10:42
Re: [HELP] PICKUP'S PROBLEM - by Steven Paul - 29.01.2011, 10:44
Re: [HELP] PICKUP'S PROBLEM - by Jaber_Brown - 29.01.2011, 10:47
Re: [HELP] PICKUP'S PROBLEM - by Jaber_Brown - 29.01.2011, 10:48
Re: [HELP] PICKUP'S PROBLEM - by Steven Paul - 29.01.2011, 11:01
Re: [HELP] PICKUP'S PROBLEM - by Jaber_Brown - 29.01.2011, 11:58
Re: [HELP] PICKUP'S PROBLEM - by TeeQ - 29.01.2011, 12:04
Re: [HELP] PICKUP'S PROBLEM - by Cameltoe - 29.01.2011, 12:10
Re: [HELP] PICKUP'S PROBLEM - by Jaber_Brown - 29.01.2011, 12:15
Re: [HELP] PICKUP'S PROBLEM - by Jaber_Brown - 29.01.2011, 12:18

Forum Jump:


Users browsing this thread: 5 Guest(s)