Item system help
#3

this method

PHP код:
stock CreateItem 
is being executed 100 times, because of the loop, and you're creating items with it. So, just do it without the For loop:

PHP код:

new 0;

stock CreateItem(modelamounttypeFloat:XFloat:YFloat:ZFloat:RXFloat:RYFloat:RZworldinterior)
{
    if(
model != 0)
    {
       
            
            {
                
Item[i][ItemModel] = model;
                
Item[i][ItemAmount] = amount;
                
Item[i][ItemType] = type;
                
Item[i][ItemPosX] = X;
                
Item[i][ItemPosY] = Y;
                
Item[i][ItemPosZ] = Z;
                
Item[i][ItemRotX] = RX;
                   
Item[i][ItemRotY] = RY;
                
Item[i][ItemRotZ] = RZ;
                
Item[i][ItemVWorld] = world;
                
Item[i][ItemInterior] = interior;
                
LoadItemVisual();
                
//ItemLabel[i] = Create3DTextLabel("ItemName", COLOR_BLUE, X, Y, Z, 5, world, 0);
                
DropObject[i] = CreateObject(modelXYZRXRYRZworld);
                           
                           
i++;
            }
        
    }
    return 
1;

Reply


Messages In This Thread
Item system help - by DTV - 20.04.2015, 16:08
Re: Item system help - by EiresJason - 20.04.2015, 16:10
Re: Item system help - by Fel486 - 20.04.2015, 16:12
Re: Item system help - by DTV - 20.04.2015, 16:16
Re: Item system help - by Pottus - 20.04.2015, 16:29
Re: Item system help - by DTV - 20.04.2015, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)