07.06.2016, 19:58
AHA seems that something else is causing it
Without the function CreateMeatObject it delete anything but with it it does.
Instead of spawning 2nd meat, it deletes the map
Also after shooting the 2nd deer, its giving me some different results
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:amount, Float:X, Float:Y, Float:Z, Float:RX, Float:RY, Float:RZ) {
for(new i = 0; i < sizeof(mInfo); i++) {
mInfo[i][meatObject] = CreateDynamicObject(2806, X, Y, Z, RX, RY, RZ);
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
Also after shooting the 2nd deer, its giving me some different results
PHP Code:
[22:02:33] Breaking object ID: 375
[22:02:35] Breaking object ID: 194