Posts: 368
Threads: 24
Joined: Feb 2012
Quote:
Originally Posted by kurta999
The first part of this code won't work (or won't work properly), but this will.
pawn Код:
if(IsPlayerConnected(playerid)) { if(hittype == BULLET_HIT_TYPE_PLAYER_OBJECT) { new streamerid = Streamer_GetItemStreamerID(playerid, STREAMER_TYPE_OBJECT, hitid); if(IsValidDynamicObject(streamerid)) { CallLocalFunction("OnPlayerShootDynamicObject", "dddfff", playerid, weaponid, streamerid, fX, fY, fZ); } } }
|
idk why, but it never gets past here: if(hittype == BULLET_HIT_TYPE_PLAYER_OBJECT)
and yes, object is created with CreateDynamicObject.