OnPlayerWeaponShot not recognizing minigun
#7

Well in that line you do insert hitid in the MinigunInfo array although it is the objectid
pawn Код:
if( hitid == MinigunInfo[hitid][Object] && hitid != INVALID_OBJECT_ID )
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
pawn Код:
MinigunInfo[mID][Object] = CreateObject(2985,X,Y+1,Z-0.95,0,0,0);
And not like that
pawn Код:
new objectid = CreateObject(2985,X,Y+1,Z-0.95,0,0,0);
MinigunInfo[objectid][Object] = objectid;
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)