warnings and errors don't understand
#1

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

PHP код:
function loadgraffs()
{
        new 
string[32];
        for(new 
IDID 50ID++)
        {
            
format(stringsizeof(string), GraffitisID);
            if(
dini_Exists(string))
            {
                        
gInfo[ID][OBJECTID] = CreateDynamicObject19482gInfo[ID][Xpos],gInfo[ID][Ypos],gInfo[ID][Zpos], gInfo[ID][XYpos], gInfo[ID][YYpos], gInfo[ID][ZYpos], -10, -1200 ); //Creating the object
                        
SetDynamicObjectMaterialTextgInfo[ID][OBJECTID], 0gInfo[ID][graffname], OBJECT_MATERIAL_SIZE_256x256"Diploma"2500xFFFFFFFF0); // Setting the object text with our choosen graffiti text
            
}
        }
        return 
1;

54813 = for(new ID; ID < 50; ID++)

Can you help me please ?
Reply
#2

⁢⁢⁢⁢⁢ ⁢⁢⁢⁢⁢ ⁢⁢⁢⁢⁢ ⁢⁢⁢⁢⁢ ⁢⁢⁢⁢⁢ ⁢⁢⁢⁢⁢ ⁢⁢⁢⁢⁢ ⁢⁢⁢⁢⁢ ⁢⁢⁢⁢⁢ ⁢⁢⁢⁢⁢ ⁢⁢⁢⁢⁢ ⁢⁢⁢⁢⁢
Reply
#3

Change ID to something else and tell if you get errors
Reply
#4

Quote:
Originally Posted by Whatname
Посмотреть сообщение
Change ID to something else and tell if you get errors
What? Although You're Right..

You Have ID somewhere in your script

warning 219: local variable "ID" shadows a variable at a preceding level

Код:
for(new i; i <50; i++){
Reply
#5

Quote:
Originally Posted by Whatname
Посмотреть сообщение
Change ID to something else and tell if you get errors
its good thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)