error 022: must be lvalue (non-constant)
#1

PHP код:
        case THREAD_LOAD_ADMINVEHICLES:
        {
            new 
modelidFloat:pos_xFloat:pos_yFloat:pos_zFloat:pos_acolor1color2respawndelayvehicleid;
            for(new 
0rows++)
            {
                
modelid         cache_get_field_content_int(i"modelid"), //error lines
                
pos_x             cache_get_field_content_float(i"pos_x"), // 
                
pos_y             cache_get_field_content_float(i"pos_y"), //
                
pos_z             cache_get_field_content_float(i"pos_z"), // 
                
pos_a             cache_get_field_content_float(i"pos_a"), //
                
color1             cache_get_field_content_int(i"color1"), //
                
color2             cache_get_field_content_int(i"color2"), //
                
respawndelay     cache_get_field_content_int(i"respawndelay"); //
                
vehicleid         CreateVehicle(modelidpos_xpos_ypos_zpos_acolor1color2respawndelay); //
                
if(vehicleid != INVALID_VEHICLE_ID)
                {
                    
ResetVehicle(vehicleid); 
                    
AdminVehicleInfo[vehicleid][vID] = cache_get_field_content_int(i"id");
                    
AdminVehicleInfo[vehicleid][vGang] = cache_get_field_content_int(i"gangid");
                    
AdminVehicleInfo[vehicleid][vFactionType] = cache_get_field_content_int(i"factiontype");
                    
AdminVehicleInfo[vehicleid][vVIP] = cache_get_field_content_int(i"vippackage");
                    
AdminVehicleInfo[vehicleid][vJob] = cache_get_field_content_int(i"job");
                    
AdminVehicleInfo[vehicleid][vHealth] = cache_get_field_content_int(i"health");
                    if(
AdminVehicleInfo[vehicleid][vGang] >= 0)
                    {
                        
AdminVehicleInfo[vehicleid][vPrice] = cache_get_field_content_int(i"price");
                        
AdminVehicleInfo[vehicleid][vLocked] = cache_get_field_content_int(i"locked");
                        
AdminVehicleInfo[vehicleid][vPaintjob] = cache_get_field_content_int(i"paintjob");
                        
AdminVehicleInfo[vehicleid][vInterior] = cache_get_field_content_int(i"interior");
                        
AdminVehicleInfo[vehicleid][vWorld] = cache_get_field_content_int(i"world");
                        
AdminVehicleInfo[vehicleid][vMods][0] = cache_get_field_content_int(i"mod_1");
                        
AdminVehicleInfo[vehicleid][vMods][1] = cache_get_field_content_int(i"mod_2");
                        
AdminVehicleInfo[vehicleid][vMods][2] = cache_get_field_content_int(i"mod_3");
                        
AdminVehicleInfo[vehicleid][vMods][3] = cache_get_field_content_int(i"mod_4");
                        
AdminVehicleInfo[vehicleid][vMods][4] = cache_get_field_content_int(i"mod_5");
                        
AdminVehicleInfo[vehicleid][vMods][5] = cache_get_field_content_int(i"mod_6");
                        
AdminVehicleInfo[vehicleid][vMods][6] = cache_get_field_content_int(i"mod_7");
                        
AdminVehicleInfo[vehicleid][vMods][7] = cache_get_field_content_int(i"mod_8");
                        
AdminVehicleInfo[vehicleid][vMods][8] = cache_get_field_content_int(i"mod_9");
                        
AdminVehicleInfo[vehicleid][vMods][9] = cache_get_field_content_int(i"mod_10");
                        
AdminVehicleInfo[vehicleid][vMods][10] = cache_get_field_content_int(i"mod_11");
                        
AdminVehicleInfo[vehicleid][vMods][11] = cache_get_field_content_int(i"mod_12");
                        
AdminVehicleInfo[vehicleid][vMods][12] = cache_get_field_content_int(i"mod_13");
                        
AdminVehicleInfo[vehicleid][vMods][13] = cache_get_field_content_int(i"mod_14");
                        
ReloadVehicle(vehicleid);
                    }
                    
AdminVehicleInfo[vehicleid][vModel] = modelid;
                    
AdminVehicleInfo[vehicleid][vPosX] = pos_x;
                    
AdminVehicleInfo[vehicleid][vPosY] = pos_y;
                    
AdminVehicleInfo[vehicleid][vPosZ] = pos_z;
                    
AdminVehicleInfo[vehicleid][vPosA] = pos_a;
                    
AdminVehicleInfo[vehicleid][vColor1] = color1;
                    
AdminVehicleInfo[vehicleid][vColor2] = color2;
                    
AdminVehicleInfo[vehicleid][vRespawnDelay] = respawndelay;
                    
AdminVehicleInfo[vehicleid][vObjects][0] = INVALID_OBJECT_ID;
                    
AdminVehicleInfo[vehicleid][vObjects][1] = INVALID_OBJECT_ID;
                    
AdminVehicleInfo[vehicleid][vTimer] = -1;
                    
AdminVehicleInfo[vehicleid] = 100;
                    
SetVehicleHealth(vehicleidAdminVehicleInfo[vehicleid][vHealth]);
                }
            }
        } 
What's the problem?
Reply
#2

Any line that's being provided to let everyone know where its originating from ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)