30.05.2009, 09:58
Server crashes after public SaveDynamicCars is applied via any cmd that works with it...
here is the pastebin: http://pastebin.com/f2e81f03
here is the DynamicFactions variable:
What is the problem that Causes the Crash?
here is the pastebin: http://pastebin.com/f2e81f03
here is the DynamicFactions variable:
pawn Код:
#define MAX_DYN_CARS 700
enum Cars
{
CarModel,
Float:CarX,
Float:CarY,
Float:CarZ,
Float:CarAngle,
CarColor1,
CarColor2,
FactionCar,
CarType,
};
new DynamicCars[MAX_DYN_CARS][Cars];
public OnGameModeInit()
{
new File:cars = fopen("Cars/carspawns.cfg",io_read);
new tmpstr[200];
for(new i; i <MAX_DYN_CARS;i++)
{
fread(cars,tmpstr,sizeof(tmpstr));
if(!tmpstr[0])return 1;
else i++;
}
}