Error on EnterDynamicCP
#8

Bump having a issue it won't show when i enter the DynamicCP

Also am getting a waring on this line if (IsPlayerInRangeOfPoint(i, 2.5, HouseInfo[i][houseID], HouseInfo[i][housePos][0])) saying. number of arguments does not match definition

Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
 	new playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid, playername, sizeof(playername));
 	for(new i = 0; i < sizeof(HouseInfo); i++) // ERROR ON THIS LINE.
 	{
        CheckP[playerid] = 1;

        if (IsPlayerInRangeOfPoint(i, 2.5, HouseInfo[i][houseID], HouseInfo[i][housePos][0])) 
		{
            if(HouseInfo[i][housePrice] != 0)
			{
                if(HouseInfo[i][houseID] == 0)
				{
                    static string[128];
                    SendClientMessage(i, COLOR_GREEN, "Would you like to buy this?");
                    format(string, sizeof(string), "Price: $%d", HouseInfo[i][housePrice]);
    				SendClientMessage(i, COLOR_GREEN, string);
                    SendClientMessage(i, COLOR_WHITE, "Available commands: /enter, /ds(hout)");
                    SendClientMessage(i, COLOR_WHITE, "/buyhouse");
                }
          	    else if(strcmp(playername, HouseInfo[i][houseOwner], true) == 0)
				{
	                SendClientMessage(i, COLOR_GREEN,"Welcome to your porch!");
	                SendClientMessage(i, COLOR_WHITE,"Available commands: /enter,lock,/house,/houseupgrade,/evict,/evictall,/sellhouse");
			    }
       			else if(PlayerData[i][pHousekey] == 255 || HouseInfo[i][houseRentabil] == 0 && PlayerData[i][pHouse] != 255)
	   			{
       				new string[128];
           			format(string, sizeof(string), "[Address: %d] You're standing on %s's porch.", HouseInfo[i][houseOwner]);
              		SendClientMessage(i, COLOR_GREEN, string);
              		SendClientMessage(i,COLOR_WHITE,"Available commands: /enter, /ds(hout), /knock, /doorbell, /breakin.");
	   			}
			 	CheckP[playerid] = 0;
	  		}
	 	}
  	}
}


enum houseData
{
	houseID,
	houseExists,
	houseOwner,
	housePrice,
	houseAddress[32],
	Float:housePos[4],
	Float:houseInt[4],
	houseInterior,
	houseExterior,
	houseExteriorVW,
	houseLocked,
	houseMoney,
	houseOwned,
	houseMapIcon,
	Text3D:houseText3D,
	housePickup,
	houseLights,
	houseWeapons[10],
	houseAmmo[10],
	houseRentabil,
	houseCP
};
new CheckP[MAX_PLAYERS];
new HouseInfo[MAX_HOUSES][houseData];
Reply


Messages In This Thread
Error on EnterDynamicCP - by fonia5 - 01.02.2015, 19:22
Re: Error on EnterDynamicCP - by SnG.Scot_MisCuDI - 01.02.2015, 19:26
Re: Error on EnterDynamicCP - by fonia5 - 01.02.2015, 19:33
Re: Error on EnterDynamicCP - by SnG.Scot_MisCuDI - 01.02.2015, 19:42
Re: Error on EnterDynamicCP - by fonia5 - 01.02.2015, 19:49
Re: Error on EnterDynamicCP - by SnG.Scot_MisCuDI - 01.02.2015, 19:52
Re: Error on EnterDynamicCP - by fonia5 - 01.02.2015, 20:28
Re: Error on EnterDynamicCP - by fonia5 - 03.02.2015, 13:17
Re: Error on EnterDynamicCP - by CalvinC - 03.02.2015, 14:27
Re: Error on EnterDynamicCP - by fonia5 - 03.02.2015, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)