Question on Virtual World
#1

i Can Do something like this to make 3houses with the same interior?

Код:
			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]);
						new interior=(playerid,HouseInfo[i][hInt]);
						new interior2=(playerid,HouseInfo[i][hInt]);
						new interio3=(playerid,HouseInfo[i][hInt]);
						if ( interior==interior2)
						{
						SetPlayerVirtualWorld(playerid,1)
						}
						if(interior==interior3)
						{
						SetPlayerVirtualWorld(playerid,2);
						}
						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;
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld

Click there if you read carrefully you wil know what to do.
If not come back here with your questions and we will tty to help you.

Gr Artix
Reply
#3

i Already saw this, but im trying to make 3 houses with the same interior like you see in my code

Код:
						SetPlayerInterior(playerid,HouseInfo[i][hInt]);
						new interior=(playerid,HouseInfo[i][hInt]);
						new interior2=(playerid,HouseInfo[i][hInt]);
						new interio3=(playerid,HouseInfo[i][hInt]);
						if ( interior==interior2)
						{
						SetPlayerVirtualWorld(playerid,1)
						}
						if(interior==interior3)
						{
						SetPlayerVirtualWorld(playerid,2);
						}
What is wrong in my Virtual world code
Reply
#4

For what i can see about it i dont see whats wrong.
Explane to me exactly what it does and doesnt do.
Then i am sure we can fix it together.

Gr Artix
Reply
#5

i get errors on this lines

new interior=(playerid,HouseInfo[i][hInt]);
new interior2=(playerid,HouseInfo[i][hInt]);
new interio3=(playerid,HouseInfo[i][hInt]);
Reply
#6

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)