24.10.2017, 13:09
Quote:
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; } or just #define CreateDynamicObject Ex_CreateDynamicObject |
Код:
error 059: function argument may not have a default value (variable "worldid")