I changed the DrawDistance CreateDynamicObject and now the objects no longer appear. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I changed the DrawDistance CreateDynamicObject and now the objects no longer appear. (
/showthread.php?tid=486793)
I changed the DrawDistance CreateDynamicObject and now the objects no longer appear. -
RicardoMaia - 10.01.2014
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:
Re: I changed the DrawDistance CreateDynamicObject and now the objects no longer appear. -
Konstantinos - 10.01.2014
You probably have OnGameModeInit callback twice into your mode.
CreateDynamicObject doesn't have drawdistance so use either Streamer_SetFloatData to set it or CreateDynamicObjectEx.
Re: I changed the DrawDistance CreateDynamicObject and now the objects no longer appear. -
RicardoMaia - 10.01.2014
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.
Re: I changed the DrawDistance CreateDynamicObject and now the objects no longer appear. -
Konstantinos - 11.01.2014
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.
Re: I changed the DrawDistance CreateDynamicObject and now the objects no longer appear. -
RicardoMaia - 11.01.2014
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 :/