31.01.2015, 21:44
First, the top of my script:
I'm pretty sure this is all working fine. I get the following error on the Iter_Init line.
The following stuff is in OnGameModeInit.
What is the problem with that Iterator?
Ps, using YSI 3.1
pawn Code:
#undef MAX_OBJECTS
#define MAX_OBJECTS 2500
new Iterator:Object<MAX_OBJECTS>;
stock _ALT_CreateDynamicObject(modelid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz,worldid=-1,interiorid=-1,playerid=-1,Float:streamdistance=200.0,Float:drawdistance=0.0)
{
new objectid = CreateDynamicObject(modelid,x,y,z,rx,ry,rz,worldid,interiorid,playerid,streamdistance,drawdistance);
if(IsValidDynamicObject(objectid)) Iter_Add(Object, objectid);
return objectid;
}
#if defined _ALS_CreateDynamicObject
#undef CreateDynamicObject
#else
#define _ALS_CreateDynamicObject
#endif
#define CreateDynamicObject _ALT_CreateDynamicObject
stock _ALT_DestroyDynamicObject(objectid)
{
if(IsValidDynamicObject(objectid)) Iter_Remove(Object, objectid);
return DestroyDynamicObject(objectid);
}
#if defined _ALS_DestroyDynamicObject
#undef DestroyDynamicObject
#else
#define _ALS_DestroyDynamicObject
#endif
#define DestroyDynamicObject _ALT_DestroyDynamicObject
Quote:
Originally Posted by pawn.cc
(636) : error 048: array dimensions do not match
|
pawn Code:
/*[635]*/Streamer_SetMaxItems(STREAMER_TYPE_OBJECT, MAX_OBJECTS);
/*[636]*/Iter_Init(Object);
Ps, using YSI 3.1