No load spoiler system.
#1

Hi, i have a spoilers system with Y_INI, the system work perfect, but the load not work.
Sorry for my bad english.
Thanks.

PHP код:
stock GuardarAleron(vehicleid

    new 
_DirFile[MAX_FILE_NAME], INI:_File
    
format(_DirFile,sizeof(_DirFile),"Alerones/%d.ini"vehicleid); 
     
    if(!
fexist(_DirFile)) 
    { 
        
format(strsizeof(str), "Alerones/%i.ini",vehicleid); 
         
CreateFile(str); 
    } 
     
    
_File INI_Open(_DirFile); 
    
INI_SetTag(_File,"data"); 
    
INI_WriteInt(_File,"AleronID",InformacionV[vehicleid][V_ALERON]); 
    
INI_Close(_File); 
    return 
1

forward CargarInformacionAleron_data(i,name[],value[]); 
public 
CargarInformacionAleron_data(i,name[],value[]) 

    
INI_Int("AleronID",InformacionV[vehicleid][V_ALERON]); 
    return 
0

public 
OnVehicleSpawn(vehicleid

    new 
objetoveh
     new 
_DirFile[16]; 
    
format(_DirFile,sizeof(_DirFile),"Alerones/%d.ini",vehicleid); 
    if(
fexist(_DirFile)) 
    { 
        
INI_ParseFile(_DirFile,"CargarInformacionAleron_data",.bExtra true, .extra vehicleid); 
        
InformacionV[vehicleid][AleronCargado] = true
        switch(
GetVehicleModel(vehicleid)) 
        { 
            case 
402// BUFFALO 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid, -0.010, -2.4000.2290.0000.0000.000); 
            } 
            case 
411// INFERNUS 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid, -0.042, -2.3380.3300.0000.000, -0.199); 
            } 
            case 
415// CHEETAH 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.2900.2190.0000.0000.000); 
            } 
            case 
426// PREMIER 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.5400.2500.0000.0000.000); 
            } 
            case 
429// BANSHEE 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.010, -2.2220.2800.0000.0000.000); 
            } 
            case 
475// SABRE 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.4500.1790.0000.0000.000); 
            } 
            case 
492// GREENWOOD 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.7100.2900.0000.0000.000); 
            } 
            case 
507// ELEGANT 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.8300.2190.0000.0000.000); 
            } 
            case 
516// NEBULA 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.5890.2790.0000.0000.000); 
            } 
            case 
518// BUCCANEER 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.4500.1300.0000.0000.000); 
            } 
            case 
526// FORTUNE 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.0900.1800.0000.0000.000); 
            } 
            case 
533// FELTZER 
            

                   
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.3290.2190.0000.0000.000); 
            } 
            case 
541// BULLET 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -1.9100.3300.0000.0000.000); 
            } 
            case 
542// CLOVER 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.6510.3190.0000.0000.000); 
            } 
            case 
546// INTRUDER 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.4000.3090.0000.0000.000); 
            } 
            case 
547// PRIMO 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.5200.2700.0000.0000.000); 
            } 
            case 
550// SUNRISE 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.4400.1800.0000.0000.000); 
            } 
            case 
585// EMPEROR 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.7290.3890.0000.0000.000); 
            } 
            case 
587// EUROS 
            

                
objetoveh CreateDynamicObject(InformacionV[vehicleid][V_ALERON],0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); 
                
AttachDynamicObjectToVehicle(objetovehvehicleid0.000, -2.3500.2600.0000.0000.000); 
            } 
        } 
    } 
        return 
1

Reply
#2

Help me please :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)