object problem
#1

I updated incognito streamer and now some objects are not being created..

// walls objects is not created while // roof objects are created.

It's only with textured objects. What's the problem?

pawn Код:
// walls
tmpobjid = CreateDynamicObjectEx(19385, -2387.91138, -586.77020, 132.43158,   0.00000, 0.00000, 35.06160, STREAM_CONSTANT,STREAM_CONSTANT);
SetDynamicObjectMaterial(tmpobjid,0, 8434, "vgsoffice1", "villainnwall02_128", 0xFFFFFFFF);
tmpobjid = CreateDynamicObjectEx(19401, -2386.08887, -589.33630, 132.42210,   0.00000, 0.00000, 35.06160, STREAM_CONSTANT,STREAM_CONSTANT);
SetDynamicObjectMaterial(tmpobjid,0, 8434, "vgsoffice1", "villainnwall02_128", 0xFFFFFFFF);
tmpobjid = CreateDynamicObjectEx(19449, -2381.30542, -587.83447, 132.43291,   0.00000, 0.00000, 304.96359, STREAM_CONSTANT,STREAM_CONSTANT);
SetDynamicObjectMaterial(tmpobjid, 0, 8434, "vgsoffice1", "villainnwall02_128", 0xFFFFFFFF);
tmpobjid = CreateDynamicObjectEx(19401, -2389.74316, -584.14148, 132.42210,   0.00000, 0.00000, 35.06160, STREAM_CONSTANT,STREAM_CONSTANT);
SetDynamicObjectMaterial(tmpobjid, 0, 8434, "vgsoffice1", "villainnwall02_128", 0xFFFFFFFF);
tmpobjid = CreateDynamicObjectEx(19449, -2386.72925, -580.17371, 132.43291,   0.00000, 0.00000, 304.96359, STREAM_CONSTANT,STREAM_CONSTANT);
SetDynamicObjectMaterial(tmpobjid, 0, 8434, "vgsoffice1", "villainnwall02_128", 0xFFFFFFFF);
// roof
tmpobjid = CreateDynamicObjectEx(19376, -2380.11230, -581.28009, 128.92580,   0.00000, 0.00000, 35.12160);
SetDynamicObjectMaterial(tmpobjid, 0, 8434, "vgsoffice1", "villainnwall02_128", 0xFFFFFFFF);
   
tmpobjid = CreateDynamicObjectEx(19376, -2384.35034, -584.26770, 134.15390,   0.00000, 90.00000, 35.02560);
SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "sf_spray_floor2", 0xFFFFFFFF);
Reply
#2

Try to remove this all:
Код:
STREAM_CONSTANT, STREAM_CONSTANT);
since your roof objects aren't using it.
Reply
#3

not working, still have some objects that are not created
Reply
#4

Can you just use the non-extended (I have no idea what extended functions are meant for? I assume they are for extra params?)

Код:
native STREAMER_TAG_OBJECT CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD);
ref: https://sampforum.blast.hk/showthread.php?tid=102865
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)