interior linking to gether
#1

i have to buiding using the interior id 3 but i dont want them to be the same has any one got solution here is the part of the two different building what can i do to separate them but still use same interior
Код:
//Scorpia Agency gang hq
		if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
		{
			SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
			GameTextForPlayer(playerid, "~w~Scorpia Agency HQ",5000,1);
			SetPlayerInterior(playerid,3);
			SetPlayerFacingAngle(playerid, 1);
			PlayerInfo[playerid][pInt] = 4;
		}
		else if(hqlock[iolock] == 1)
		{
		  SetPlayerPos(playerid, 318.4700,1117.5127,1083.8828);
			GameTextForPlayer(playerid, "~w~Scorpia Agency HQ",5000,1);
			SetPlayerInterior(playerid,3);
			SetPlayerFacingAngle(playerid, 0);
			PlayerInfo[playerid][pInt] = 4;
		}
		else
		{
		  GameTextForPlayer(playerid, "~r~Locked",5000,1);
		}
	}
	else if (PlayerToPointStripped(1, playerid,447.0208,1397.4796,1084.3047, cx,cy,cz))
	{

		//Scorpia Agency hq
		SetPlayerPos(playerid, 1545.0803,-1269.7253,17.4063);
		GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
		SetPlayerInterior(playerid,0);
		SetPlayerFacingAngle(playerid, 179);
		PlayerInfo[playerid][pInt] = 0;
	}
	else if (PlayerToPointStripped(1, playerid,1545.0803,-1269.7253,17.4063, cx,cy,cz))
	{
Код:
//City hall
		SetPlayerPos(playerid, 386.2978,173.8582,1008.3828);
		GameTextForPlayer(playerid, "~w~City Hall",5000,1);
		SetPlayerInterior(playerid,3);
		SetPlayerFacingAngle(playerid, 0);
		PlayerInfo[playerid][pInt] = 3;
	}
	else if (PlayerToPointStripped(1, playerid,390.0630,173.5741,1008.3828, cx,cy,cz))
	{
		//City hall
		SetPlayerPos(playerid, 1481.0206,-1769.5138,18.7958);
		GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
		SetPlayerInterior(playerid,0);
		SetPlayerFacingAngle(playerid, 0);
		PlayerInfo[playerid][pInt] = 0;
	}
	else if (PlayerToPointStripped(1, playerid,1784.58,-1297.52,13.37, cx,cy,cz))
Reply
#2

Try SetPlayerVirtualWorld
Reply
#3

C:\Users\alex\Documents\My Received Files\Testing123\gamemodes\gtarpfixed.pwn(42892) : warning 202: number of arguments does not match definition
C:\Users\alex\Documents\My Received Files\Testing123\gamemodes\gtarpfixed.pwn(42901) : warning 202: number of arguments does not match definition
C:\Users\alex\Documents\My Received Files\Testing123\gamemodes\gtarpfixed.pwn(42917) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 9464 bytes
Code size: 1630228 bytes
Data size: 10354384 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5522 cells (22088 bytes)
Total requirements:12010460 bytes

3 Warnings.


Код:
//Scorpia Agency gang hq
		if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
		{
			SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
			GameTextForPlayer(playerid, "~w~Scorpia Agency HQ",5000,1);
			SetPlayerInterior(playerid,3);
			SetPlayerFacingAngle(playerid, 1);
			PlayerInfo[playerid][pInt] = 3;
			SetPlayerVirtualWorld(5)
		}
		else if(hqlock[iolock] == 1)
		{
		  SetPlayerPos(playerid, 318.4700,1117.5127,1083.8828);
			GameTextForPlayer(playerid, "~w~Scorpia Agency HQ",5000,1);
			SetPlayerInterior(playerid,3);
			SetPlayerFacingAngle(playerid, 0);
			PlayerInfo[playerid][pInt] = 3;
			SetPlayerVirtualWorld(5)
		}
		else
		{
		  GameTextForPlayer(playerid, "~r~Locked",5000,1);
		}
	}
	else if (PlayerToPointStripped(1, playerid,447.0208,1397.4796,1084.3047, cx,cy,cz))
	{

		//Scorpia Agency hq
		SetPlayerPos(playerid, 1545.0803,-1269.7253,17.4063);
		GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
		SetPlayerInterior(playerid,0);
		SetPlayerFacingAngle(playerid, 179);
		PlayerInfo[playerid][pInt] = 0;
		SetPlayerVirtualWorld(0)
	}
	else if (PlayerToPointStripped(1, playerid,1545.0803,-1269.7253,17.4063, cx,cy,cz))
	{
Код:
//City hall
		SetPlayerPos(playerid, 386.2978,173.8582,1008.3828);
		GameTextForPlayer(playerid, "~w~City Hall",5000,1);
		SetPlayerInterior(playerid,3);
		SetPlayerFacingAngle(playerid, 0);
		PlayerInfo[playerid][pInt] = 3;
	}
	else if (PlayerToPointStripped(1, playerid,390.0630,173.5741,1008.3828, cx,cy,cz))
	{
		//City hall
		SetPlayerPos(playerid, 1481.0206,-1769.5138,18.7958);
		GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
		SetPlayerInterior(playerid,0);
		SetPlayerFacingAngle(playerid, 0);
		PlayerInfo[playerid][pInt] = 0;
	}
	else if (PlayerToPointStripped(1, playerid,1784.58,-1297.52,13.37, cx,cy,cz))
	{
no it didnt work and it made my city hall crash the server did i do something wrong
Reply
#4

Haha xD

Click Here and read the wiki.

It's SetPlayerVirtualWorld(playerid,WorldID);
Reply
#5

oh many thanks for your help two nice people in one topics makes a change XD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)