A little problem (not)
#1

Well, I made 46 houses but when I enter in house 4 and when I type /exit it 'teleports' me to another enter house with the same interior.

#sorry for my bad English, I'm from Romania.
Reply
#2

Quote:
Originally Posted by Razvann
Well, I made 46 houses but when I enter in house 4 and when I type /exit it 'teleports' me to another enter house with the same interior.

#sorry for my bad English, I'm from Romania.
You need to tell us some more.

What GM do you use, or do you have a dynamic house system, mabye post some lines.
Reply
#3

I'm using Godfather and Godfather House System, I don't have any errors..
Reply
#4

Please post your /exit and your /enter Command
I think you replaced a var from the Function
Reply
#5

Ok, here is it:
For /enter:
Код:
	if(strcmp(cmd, "/enter", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
		{
			for(new i = 0; i < sizeof(HouseInfo); i++)
			{
				if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
				{
					//printf("Found House :%d",i);
					if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
					{
						SetPlayerInterior(playerid,HouseInfo[i][hInt]);
						SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
						GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
						PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
						PlayerInfo[playerid][pLocal] = i;
					}
					else
					{
						GameTextForPlayer(playerid, "~r~Locked", 5000, 1);
					}
				}
			}
	and more lines..
and for /exit:
Код:
	if(strcmp(cmd, "/exit", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
		{
			for(new i = 0; i < sizeof(HouseInfo); i++)
			{
				//printf("House :%d",i);
				if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
				{
					SetPlayerInterior(playerid,0);
					SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
					PlayerInfo[playerid][pInt] = 0;
					PlayerInfo[playerid][pLocal] = 255;
					if(HouseInfo[i][hHel] == 1)
					{
						new Float:tempheal;
						GetPlayerHealth(playerid,tempheal);
						if(tempheal < 100.0)
						{
							SetPlayerHealth(playerid,100.0);
						}
					}
				}
			}
and more lines..
Reply
#6

Quote:
Originally Posted by Razvann
Well, I made 46 houses but when I enter in house 4 and when I type /exit it 'teleports' me to another enter house with the same interior.

#sorry for my bad English, I'm from Romania.
Does anyone know?

@sorry 4 double..
Reply
#7

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)