23.10.2013, 17:17
Hi. I got a little help regarding an object streaming issue a few days ago, and I was given a stock function, however, it seems to break the CreateDynamicObject function. Whenever I use the stock, the object isn't created.
pawn Код:
stock AddDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, drawdistance = 300.0)
{
new oid;
oid = CreateDynamicObject(modelid, x, y, z, rx, ry, rz, worldid, interiorid, playerid, streamdistance);
Streamer_SetFloatData(STREAMER_TYPE_OBJECT, oid, E_STREAMER_DRAW_DISTANCE, 300.0);
return oid;
}

