PDA

View Full Version : error 029: invalid expression, assumed zero


SnickersBubuk
14/04/2016, 05:16 PM
I've problem :( anyone can help me pls??

Line.inc(49) : error 029: invalid expression, assumed zero
Line.inc(49) : error 020: invalid symbol name ""
Line.inc(49) : error 029: invalid expression, assumed zero

stock CreateLineSegment(modelid, Float:objlength, Float:PointX, Float:PointY, Float:PointZ, Float:DestX, Float:DestY, Float:DestZ, Float:RotX = 0.0, Float:RotY = 0.0, Float:RotZ = 0.0, Float:objlengthoffset = 0.0, worldid = -1, interiorid = -1, playerid = -1, Float:maxlength = 100.0)
{

new id = Iter_Free(lin_Index); << here is the problem

if(id == 0)
{
print("ERROR: MAX_LINE limit reached.");
return 0;
}

lin_Data[id][lin_maxLength] = maxlength;
lin_Data[id][lin_model] = modelid;
lin_Data[id][lin_objLength] = objlength;
lin_Data[id][lin_objLengthOffset] = objlengthoffset;

lin_Data[id][lin_posX] = PointX;
lin_Data[id][lin_posY] = PointY;
lin_Data[id][lin_posZ] = PointZ;

lin_Data[id][lin_dstX] = DestX;
lin_Data[id][lin_dstY] = DestY;
lin_Data[id][lin_dstZ] = DestZ;

lin_Data[id][lin_rotX] = RotX;
lin_Data[id][lin_rotY] = RotY;
lin_Data[id][lin_rotZ] = RotZ;

lin_Data[id][lin_world] = worldid;
lin_Data[id][lin_interior] = interiorid;
lin_Data[id][lin_playerid] = playerid;

Iter_Add(lin_Index, id);

UpdateLineSegment(id);

return id;
}

stock DestroyLineSegment(lineid)
{
if(!Iter_Contains(lin_Index, lineid))
return 0;

for(new i; i < lin_Data[lineid][lin_objCount]; i++)
{
if(IsValidDynamicObject(lin_Objects[lineid][i]))
{
DestroyDynamicObject(lin_Objects[lineid][i]);
lin_Objects[lineid][i] = INVALID_OBJECT_ID;
}
}

Iter_Remove(lin_Index, lineid);

return 1;
}

how do i fix it? :( :(

OmegaKiller72
14/04/2016, 09:34 PM
Line.inc that is the problem! check compatibility your samp version with this include, or fix this include