Objects not streaming!
#10

Quote:
Originally Posted by kingmk
Посмотреть сообщение
No just create a fucntion like this.

Код:
forward Ex_CreateDynamicObject(modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: streamdistance = 300.0);
public Ex_CreateDynamicObject(modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: streamdistance = 300.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;
}
Then replace CreateDynamicObject to Ex_CreateDynamicObject and test if this worked out.

or just #define CreateDynamicObject Ex_CreateDynamicObject
This returns:
Код:
error 059: function argument may not have a default value (variable "worldid")
Reply


Messages In This Thread
Objects not streaming! - by NLDBrian - 23.10.2017, 12:21
Re: Objects not streaming! - by NLDBrian - 24.10.2017, 10:05
Re: Objects not streaming! - by IvanElistratov - 24.10.2017, 10:09
Re: Objects not streaming! - by NLDBrian - 24.10.2017, 10:14
Re: Objects not streaming! - by kingmk - 24.10.2017, 11:01
Re: Objects not streaming! - by NLDBrian - 24.10.2017, 11:16
Re: Objects not streaming! - by Danisoni - 24.10.2017, 12:10
Re: Objects not streaming! - by NLDBrian - 24.10.2017, 12:33
Re: Objects not streaming! - by kingmk - 24.10.2017, 12:37
Re: Objects not streaming! - by NLDBrian - 24.10.2017, 13:09

Forum Jump:


Users browsing this thread: 3 Guest(s)