Need help with stock
#1

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...
Reply


Messages In This Thread
Need help with stock - by Audiophr3ak - 31.01.2011, 14:13
Re: Need help with stock - by Steven Paul - 31.01.2011, 14:34
Re: Need help with stock - by Audiophr3ak - 31.01.2011, 14:36
Re: Need help with stock - by [03]Garsino - 31.01.2011, 14:37
Re: Need help with stock - by Audiophr3ak - 31.01.2011, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)