OnPlayerEditObject / DynamicObject Help
#5

Maybe create a FurnObject in the enum.
And when a furniture object is created, Store that ID in the array to be used later on.

And to get the index from the ID, Just use this func:
PHP код:
GetFurnIndex(objectid)
{
    for(new 
FurnLoop 0FurnLoop MAX_FURNITUREFurnLoop++)
    {
         if(
HouseFurni[FurnLoop][FurnObject] == objectid) return FurnLoop;
    }
    return -
1;

And ofcourse use PVars to have the objectid as I already said.
Reply


Messages In This Thread
OnPlayerEditObject / DynamicObject Help - by LiamM - 13.11.2015, 11:20
Re: OnPlayerEditObject / DynamicObject Help - by Ahmad45123 - 13.11.2015, 11:48
Re: OnPlayerEditObject / DynamicObject Help - by Ahmad45123 - 13.11.2015, 11:53
Re: OnPlayerEditObject / DynamicObject Help - by LiamM - 13.11.2015, 12:16
Re: OnPlayerEditObject / DynamicObject Help - by Ahmad45123 - 13.11.2015, 12:40
Re: OnPlayerEditObject / DynamicObject Help - by Ahmad45123 - 13.11.2015, 12:49

Forum Jump:


Users browsing this thread: 1 Guest(s)