12.08.2014, 15:28
Well in that line you do insert hitid in the MinigunInfo array although it is the objectid
Although I don't know what id's you use for the array but I assume that it can't be the object id because you create the object like that
And not like that
pawn Код:
if( hitid == MinigunInfo[hitid][Object] && hitid != INVALID_OBJECT_ID )
pawn Код:
MinigunInfo[mID][Object] = CreateObject(2985,X,Y+1,Z-0.95,0,0,0);
pawn Код:
new objectid = CreateObject(2985,X,Y+1,Z-0.95,0,0,0);
MinigunInfo[objectid][Object] = objectid;