SA-MP Forums Archive
Interior Objects Problem - 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)
+--- Thread: Interior Objects Problem (/showthread.php?tid=354084)



Interior Objects Problem - GeorgeBrown - 25.06.2012

When I enter to 24/7 Shop Interior objects are not shown, here are some screens.








Re: Interior Objects Problem - MarTaTa - 25.06.2012

Show the code ?


Re: Interior Objects Problem - GeorgeBrown - 25.06.2012

I have added them as businesses, here is /enter command code for biz.

Quote:

for(i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(BizzInfo[i][bLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Closed", 5000, 1);
return 1;
}
if(BizzInfo[i][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
SafeGivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
format(string, sizeof(string), "~r~-$%d~n~~w~type /exit~n~to get out", BizzInfo[i][bEntranceCost]);
BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
BizzInfo[i][bProducts]--;
//OnPropUpdate();
SaveSQLBizz(i+1);
GameTextForPlayer(playerid, string, 5000, 3);
}
SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
PlayerInfo[playerid][pLocal] = i+99;
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s payed $%d to enter biz %d", dood, BizzInfo[i][bEntranceCost], i);
printf("%s", string);
PayLog(string);
//PlayerInfo[playerid][pLocal] = i;
}
else
{
GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);
}
}
}



Re: Interior Objects Problem - MarTaTa - 25.06.2012

Well, how do you want here to be objects, you havent added them whoa

NOTE : if you mean the main interiors, some of them don't got objects, others got objects ( not sure about that )

EDIT : Use this here https://sampwiki.blast.hk/wiki/InteriorIDs


Respuesta: Interior Objects Problem - CidadeNovaRP - 25.06.2012

GTA RIP?
AND re-check your Iterior ID.


Re: Interior Objects Problem - paulor - 25.06.2012

It has some of the interior 24/7 that has no object!


Re: Interior Objects Problem - GeorgeBrown - 25.06.2012

There are objects. Some people do see them and some - not.