Dyanic vehicle system not loading.
#7

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
Remove everything else and just use these:
PHP код:
#define MAX_DVEHICLES 500
enum vInfo
{
    
    
vModel,
    
vID,
    
Float:vX,
    
Float:vY,
    
Float:vZ,
    
Float:vA,
    
vJob,
    
vFaction,
    
vC1,
    
vC2,
    
vWeed,
    
vMoney,
}
new 
VehInfo[MAX_DVEHICLES][vInfo];
new 
VehCount 0;
forward LoadVehicles_Vehicle(vehid,name[],value[]);
public 
LoadVehicles_Vehicle(vehid,name[],value[])
{
    
INI_Int("vModel"VehInfo[vehid][vModel]);
    
INI_Float("vX"VehInfo[vehid][vX]);
    
INI_Float("vY"VehInfo[vehid][vY]);
    
INI_Float("vZ"VehInfo[vehid][vZ]);
    
INI_Float("vA"VehInfo[vehid][vA]);
    
INI_Int("vJob"VehInfo[vehid][vJob]);
    
INI_Int("vFaction"VehInfo[vehid][vFaction]);
    
INI_Int("Color1"VehInfo[vehid][vC1]);
    
INI_Int("Color2"VehInfo[vehid][vC2]);
    
INI_Int("vWeed"VehInfo[vehid][vWeed]);
    
INI_Int("vMoney"VehInfo[vehid][vMoney]);
    return 
true;
}
LoadVehicles()
{
    for(new 
0MAX_DVEHICLESi++)
    {
        
INI_ParseFile(VehPath(i), "LoadVehicles_%s", .bExtra true, .extra i);
        
CreateVehicle(VehInfo[i][vModel],VehInfo[i][vX],VehInfo[i][vY],VehInfo[i][vZ],VehInfo[i][vA],VehInfo[i][vC1],VehInfo[i][vC2], 99999);
    }
    return 
true;
}
public 
OnGamemodeInit()
{
    
LoadVehicles();

Unfortunately, still doesn't load.
Reply


Messages In This Thread
Dyanic vehicle system not loading. - by Binx - 15.03.2015, 14:39
Re: Dyanic vehicle system not loading. - by ATGOggy - 15.03.2015, 14:41
Re: Dyanic vehicle system not loading. - by Binx - 15.03.2015, 14:46
Re: Dyanic vehicle system not loading. - by ATGOggy - 15.03.2015, 14:48
Re: Dyanic vehicle system not loading. - by Binx - 15.03.2015, 14:49
Re: Dyanic vehicle system not loading. - by ATGOggy - 15.03.2015, 14:58
Re: Dyanic vehicle system not loading. - by Binx - 15.03.2015, 15:07

Forum Jump:


Users browsing this thread: 2 Guest(s)