stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle)
{
for(new i = 0; i < sizeof(****eInfo); i++)
{
if(****eInfo[i][sCreated] == 0)
{
****eInfo[i][sCreated]=1;
****eInfo[i][sX]=x;
****eInfo[i][sY]=y;
****eInfo[i][sZ]=z-0.7;
****eInfo[i][sObject] = CreateDynamicObject(2899, x, y, z-0.9, 0, 0, Angle-90);
return 1;
}
}
return 0;
}
: warning 224: indeterminate array size in "sizeof" expression (symbol "")
stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle)
{
for(new i = 0; i < sizeof(SpiikeInfo); i++)
{
if(SpikeInfo[i][sCreated] == 0)
{
SpikeInfo[i][sCreated]=1;
SpikeInfo[i][sX]=x;
SpikeInfo[i][sY]=y;
SpikeInfo[i][sZ]=z-0.7;
SpikeInfo[i][sObject] = CreateDynamicObject(2899, x, y, z-0.9, 0, 0, Angle-90);
return 1;
}
}
return 0;
}
: warning 224: indeterminate array size in "sizeof" expression (symbol "")
//In your enum:
#define MAX_SPIKES 50
enum spikes
{
// your variables
}
new SpikeInfo[MAX_SPIKES][spikes];
// then you can use it like:
for(new i = 0; i < MAX_SPIKES; i++)
pawn Код:
|