08.08.2016, 21:00
hello, i have a problem
(54813) : warning 219: local variable "ID" shadows a variable at a preceding level
(54813) : warning 213: tag mismatch
(54813) : warning 206: redundant test: constant expression is non-zero
(54813) : error 022: must be lvalue (non-constant)
(54813) : warning 203: symbol is never used: "ID"
(54813 -- 54825) : warning 225: unreachable code
54813 = for(new ID; ID < 50; ID++)
Can you help me please ?
(54813) : warning 219: local variable "ID" shadows a variable at a preceding level
(54813) : warning 213: tag mismatch
(54813) : warning 206: redundant test: constant expression is non-zero
(54813) : error 022: must be lvalue (non-constant)
(54813) : warning 203: symbol is never used: "ID"
(54813 -- 54825) : warning 225: unreachable code
PHP код:
function loadgraffs()
{
new string[32];
for(new ID; ID < 50; ID++)
{
format(string, sizeof(string), Graffitis, ID);
if(dini_Exists(string))
{
gInfo[ID][OBJECTID] = CreateDynamicObject( 19482, gInfo[ID][Xpos],gInfo[ID][Ypos],gInfo[ID][Zpos], gInfo[ID][XYpos], gInfo[ID][YYpos], gInfo[ID][ZYpos], -1, 0, -1, 200 ); //Creating the object
SetDynamicObjectMaterialText( gInfo[ID][OBJECTID], 0, gInfo[ID][graffname], OBJECT_MATERIAL_SIZE_256x256, "Diploma", 25, 0, 0xFFFFFFFF, 0, 1 ); // Setting the object text with our choosen graffiti text
}
}
return 1;
}
Can you help me please ?