Question on Virtual World - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question on Virtual World (
/showthread.php?tid=89193)
Question on Virtual World -
Ben147 - 31.07.2009
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;
Re: Question on Virtual World -
Doppeyy - 31.07.2009
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
Re: Question on Virtual World -
Ben147 - 31.07.2009
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
Re: Question on Virtual World -
Doppeyy - 31.07.2009
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
Re: Question on Virtual World -
Ben147 - 31.07.2009
i get errors on this lines
new interior=(playerid,HouseInfo[i][hInt]);
new interior2=(playerid,HouseInfo[i][hInt]);
new interio3=(playerid,HouseInfo[i][hInt]);
Re: Question on Virtual World -
Ben147 - 01.08.2009
Anyone?