I changed the DrawDistance CreateDynamicObject and now the objects no longer appear.
#1

Topic says, can help me?

Gives a warning:

pawn Код:
\pawno\include\streamer.inc(268) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
the line of warning is this:

pawn Код:
#define OnGameModeInit Streamer_OnGameModeInit
is in:

pawn Код:
#include <streamer>
Reply
#2

You probably have OnGameModeInit callback twice into your mode.

CreateDynamicObject doesn't have drawdistance so use either Streamer_SetFloatData to set it or CreateDynamicObjectEx.
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
You probably have OnGameModeInit callback twice into your mode.

CreateDynamicObject doesn't have drawdistance so use either Streamer_SetFloatData to set it or CreateDynamicObjectEx.
Thanks, but the objects are already appearing, but have changed the draw distance and distance to stream 1200 and still only appear closely.
Reply
#4

stream and draw distances differ. Keep stream distance at 200.0 (as is - the default one) and add draw distance at 300.0

pawn Код:
stock CDO(modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: streamdistance = 200.0)
{
    new objectid = CreateDynamicObject(modelid, x, y, z, rx, ry, rz, worldid, interiorid, playerid, streamdistance);
    Streamer_SetFloatData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_DRAW_DISTANCE, 300.0);
    return objectid;
}
Replace any CreateDynamicObject with CDO and then add the stock at the bottom of your mode.
Reply
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
stream and draw distances differ. Keep stream distance at 200.0 (as is - the default one) and add draw distance at 300.0

pawn Код:
stock CDO(modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: streamdistance = 200.0)
{
    new objectid = CreateDynamicObject(modelid, x, y, z, rx, ry, rz, worldid, interiorid, playerid, streamdistance);
    Streamer_SetFloatData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_DRAW_DISTANCE, 300.0);
    return objectid;
}
Replace any CreateDynamicObject with CDO and then add the stock at the bottom of your mode.
Continues in the same way :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)