31.01.2011, 14:13
stock LoadVehicles()
{
for(new i; i<100; i++)
{
new vfile[8]; format(vfile, sizeof(vfile), "Vehicles/%d.ini", i);
if(dini_Exists(vfile)){CreateVehicle(dini_Int(vfil e,"Model"),dini_Float(vfile,"X"),dini_Float(vfile, "Y"),dini_Float(vfile,"Z"),dini_Float(vfile,"A"),d ini_Int(vfile,"C1"),dini_Int(vfile,"C2"),600);}
}
return 1;
}
public OnFilterScriptInit()
{
LoadVehicles();
return 1;
}
//Where is the problem, my cars won't spawn, it works only when im using custom CMD to load vehicles. but callbacks wont work with my function...
{
for(new i; i<100; i++)
{
new vfile[8]; format(vfile, sizeof(vfile), "Vehicles/%d.ini", i);
if(dini_Exists(vfile)){CreateVehicle(dini_Int(vfil e,"Model"),dini_Float(vfile,"X"),dini_Float(vfile, "Y"),dini_Float(vfile,"Z"),dini_Float(vfile,"A"),d ini_Int(vfile,"C1"),dini_Int(vfile,"C2"),600);}
}
return 1;
}
public OnFilterScriptInit()
{
LoadVehicles();
return 1;
}
//Where is the problem, my cars won't spawn, it works only when im using custom CMD to load vehicles. but callbacks wont work with my function...