[Help] CreateDynamicObject - 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: [Help] CreateDynamicObject (
/showthread.php?tid=307216)
[Help] CreateDynamicObject -
HF-PR - 29.12.2011
Dear users,
I'm encountering a problem and I've tried to fix it but it's just not helping. The problem is that I want the CreateDynamicObject to appear in one single interior and not in every interior. So I made this command in a dialog:
Код:
switch(listitem) //Objects Place
{
case 0:
{
if(Player[playerid][BedFurn] == 1)
{
for(new i = 0; i < sizeof(Houses); i++)
bedfurn = CreateDynamicObject(1800, -74.061431884766, 2264.4987792969, 92.093597412109, 0, 0, 0, 55000+i, 10+i, -1, 200.0); //Bed
SendClientMessage(playerid, WHITE, "* You've placed a bed in your cell.");
}
else
{
SendClientMessage(playerid, GREY, "SERVER: You don't own a bed.");
}
}
}
This is the VW: 55000+i
And this is for the interior: 10+i
But I don't know how but this object keeps appearing in ALL interiors?
Re: [Help] CreateDynamicObject -
HF-PR - 29.12.2011
Bump.