OnPlayerShootDynamicObject issue
#4

AHA seems that something else is causing it

Without the function CreateMeatObject it delete anything but with it it does.
PHP Code:
CreateMeatObject(rr,Pos[0],Pos[1],Pos[2],0.0,0.0,0.0);
CreateMeatObject(Float:amountFloat:XFloat:YFloat:ZFloat:RXFloat:RYFloat:RZ) {
    for(new 
0sizeof(mInfo); i++) {
        
mInfo[i][meatObject] = CreateDynamicObject(2806XYZRXRYRZ);
        
mInfo[i][mX] = X;
        
mInfo[i][mY] = Y;
        
mInfo[i][mZ] = Z;
        
mInfo[i][meatAmount] = amount;
    }
}
enum MEAT_DATA {
    
Float:mX,
    
Float:mY,
    
Float:mZ,
    
Float:meatAmount,
    
meatObject
};
new 
mInfo[MAX_MEAT][MEAT_DATA];
#define MAX_MEAT 255 
Instead of spawning 2nd meat, it deletes the map


Also after shooting the 2nd deer, its giving me some different results
PHP Code:
[22:02:33Breaking object ID375
[22:02:35Breaking object ID194 
Reply


Messages In This Thread
OnPlayerShootDynamicObject issue - by TwinkiDaBoss - 07.06.2016, 13:36
Re: OnPlayerShootDynamicObject issue - by IstuntmanI - 07.06.2016, 14:13
Re: OnPlayerShootDynamicObject issue - by TwinkiDaBoss - 07.06.2016, 19:38
Re: OnPlayerShootDynamicObject issue - by TwinkiDaBoss - 07.06.2016, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)