entering help
#1

Hello,i want to make that if you want to go in the house,/enter,then you have to explore the house,and the house id have to be same that Explorered is in the playerstatics,but idk,it dosent work
so when i /enter it says you have to explore this first,but my explorered is same as id of the house -.-

heres CMD


Код:
 		if(strcmp(cmdtext, "/enter", true) == 0)
		{
		for(new i = 0; i < sizeof(HouseInfo); i++)
		{
		if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
		{
		if(PlayerStatistics [ playerid ] [ Explorered ] == i)
		{
		SetPlayerInterior(playerid,HouseInfo[i][hInt]);
		SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
		}
		return 1;
    }
		else
		{
		GameTextForPlayer(playerid, "~r~You have to Explore this first!", 5000, 6);
		}
		}
		}
		return 0;
		}
Reply


Messages In This Thread
entering help - by WardenCS - 06.06.2010, 17:25
Re: entering help - by WardenCS - 06.06.2010, 21:03
Re: entering help - by DarrenReeder - 06.06.2010, 21:16
Re: entering help - by WardenCS - 07.06.2010, 05:12
Re: entering help - by WardenCS - 07.06.2010, 12:59
Re: entering help - by WardenCS - 07.06.2010, 21:43
Re: entering help - by WardenCS - 08.06.2010, 07:49
Re: entering help - by WardenCS - 08.06.2010, 18:46
Re: entering help - by Hiddos - 08.06.2010, 18:50
Re: entering help - by WardenCS - 08.06.2010, 19:31

Forum Jump:


Users browsing this thread: 2 Guest(s)