17.04.2011, 09:46
I figured out why, nevermind...
This is why... is there a way I could make the script automaticly create the 100+ files without crashing the server?
pawn Код:
{
Fini_Create(File);
format(Business[i][BName], 255, "Unknown");
Business[i][BLocked] = 1;
Business[i][BOwned] = 0;
format(Business[i][BOwner], 255, "Government");
Business[i][BPrice] = 250000;
Business[i][BType] = 0;
Business[i][BInOut] = 1;
Business[i][BIntW] = 0;
Business[i][BIntInt] = 0;
Business[i][BIntX] = 0;
Business[i][BIntY] = 0;
Business[i][BIntZ] = 0;
Business[i][BIntA] = 0;
Business[i][BExtW] = 0;
Business[i][BExtInt] = 0;
Business[i][BExtX] = 0;
Business[i][BExtY] = 0;
Business[i][BExtZ] = 0;
Business[i][BExtA] = 0;
Business[i][BRadius] = 0;
Business[i][BSupplies] = 100;
Business[i][BASupplies] = 0;
Fini_OpenFile(File);
{
Fini_SetStr("BusinessName", Business[i][BName]);
Fini_SetVal("BusinessLocked", Business[i][BLocked]);
Fini_SetVal("BusinessOwned", Business[i][BOwned]);
Fini_SetStr("BusinessOwner", Business[i][BOwner]);
Fini_SetVal("BusinessInteriorWorld", Business[i][BIntW]);
Fini_SetVal("BusinessInteriorInt", Business[i][BIntInt]);
Fini_SetFloat("BusinessInteriorX", Business[i][BIntX]);
Fini_SetFloat("BusinessInteriorY", Business[i][BIntY]);
Fini_SetFloat("BusinessInteriorZ", Business[i][BIntZ]);
Fini_SetFloat("BusinessInteriorA", Business[i][BIntA]);
Fini_SetVal("BusinessExteriorWorld", Business[i][BExtW]);
Fini_SetVal("BusinessExteriorInt", Business[i][BExtInt]);
Fini_SetFloat("BusinessExteriorX", Business[i][BExtX]);
Fini_SetFloat("BusinessExteriorY", Business[i][BExtY]);
Fini_SetFloat("BusinessExteriorZ", Business[i][BExtZ]);
Fini_SetFloat("BusinessExteriorA", Business[i][BExtA]);
Fini_SetFloat("BusinessRadius", Business[i][BRadius]);
Fini_SetVal("BusinessSupplies", Business[i][BSupplies]);
Fini_SetVal("BAcceptingSupplies", Business[i][BASupplies]);
}
Fini_SaveFile(File);
Fini_CloseFile();
}