07.02.2015, 08:05
Hey, i got problem with loading family vehicles, so i decided to printf the loading and found out that the loading function spams the server log with about 20k lines only with this: (see spamming below)
I got 14 families in total and each family has 8 vehicles in total.
The loading problem it loads from 0-13 to familyid, from 0-7 for each familyid vehicles, but the loading 0-13 times is 20k lines as it prints.
Loading function:
Loading Code:
What it prints in the server log: (small part of the prints)
Writing code:
On writing it works properly:
+REP
I got 14 families in total and each family has 8 vehicles in total.
The loading problem it loads from 0-13 to familyid, from 0-7 for each familyid vehicles, but the loading 0-13 times is 20k lines as it prints.
Loading function:
Код:
INI_Load(FAMILYHQPATH, .bLocal = false);
Код:
INI:familieshq[FamilyCars](name[], value[]) { for(new f = 0; f < MAX_FAMILY; f++) { for(new fv = 0; fv < MAX_GANG_VEHICLES; fv++) { new var[32]; format(var, 32, "Family%dVeh%dModelId", f, fv); INI_Int(var, FamilyVehicleInfo[f][fv][fvModelId]); printf(var); } } return 1; }
Код:
[07/02/2015 10:33:07] Family0Veh0ModelId [07/02/2015 10:33:07] Family0Veh1ModelId [07/02/2015 10:33:07] Family0Veh2ModelId [07/02/2015 10:33:07] Family0Veh3ModelId [07/02/2015 10:33:07] Family0Veh4ModelId [07/02/2015 10:33:07] Family0Veh5ModelId [07/02/2015 10:33:07] Family0Veh6ModelId [07/02/2015 10:33:07] Family0Veh7ModelId [07/02/2015 10:33:07] Family1Veh0ModelId [07/02/2015 10:33:07] Family1Veh1ModelId [07/02/2015 10:33:07] Family1Veh2ModelId [07/02/2015 10:33:07] Family1Veh3ModelId [07/02/2015 10:33:07] Family1Veh4ModelId [07/02/2015 10:33:07] Family1Veh5ModelId [07/02/2015 10:33:07] Family1Veh6ModelId [07/02/2015 10:33:07] Family1Veh7ModelId [07/02/2015 10:33:07] Family2Veh0ModelId [07/02/2015 10:33:07] Family2Veh1ModelId [07/02/2015 10:33:07] Family2Veh2ModelId [07/02/2015 10:33:07] Family2Veh3ModelId [07/02/2015 10:33:07] Family2Veh4ModelId [07/02/2015 10:33:07] Family2Veh5ModelId [07/02/2015 10:33:07] Family2Veh6ModelId [07/02/2015 10:33:07] Family2Veh7ModelId [07/02/2015 10:33:07] Family3Veh0ModelId [07/02/2015 10:33:07] Family3Veh1ModelId [07/02/2015 10:33:07] Family3Veh2ModelId [07/02/2015 10:33:07] Family3Veh3ModelId [07/02/2015 10:33:07] Family3Veh4ModelId [07/02/2015 10:33:07] Family3Veh5ModelId [07/02/2015 10:33:07] Family3Veh6ModelId [07/02/2015 10:33:07] Family3Veh7ModelId [07/02/2015 10:33:07] Family4Veh0ModelId [07/02/2015 10:33:07] Family4Veh1ModelId [07/02/2015 10:33:07] Family4Veh2ModelId [07/02/2015 10:33:07] Family4Veh3ModelId [07/02/2015 10:33:07] Family4Veh4ModelId [07/02/2015 10:33:07] Family4Veh5ModelId [07/02/2015 10:33:07] Family4Veh6ModelId [07/02/2015 10:33:07] Family4Veh7ModelId [07/02/2015 10:33:07] Family5Veh0ModelId [07/02/2015 10:33:07] Family5Veh1ModelId [07/02/2015 10:33:07] Family5Veh2ModelId [07/02/2015 10:33:07] Family5Veh3ModelId [07/02/2015 10:33:07] Family5Veh4ModelId [07/02/2015 10:33:07] Family5Veh5ModelId [07/02/2015 10:33:07] Family5Veh6ModelId [07/02/2015 10:33:07] Family5Veh7ModelId [07/02/2015 10:33:07] Family6Veh0ModelId [07/02/2015 10:33:07] Family6Veh1ModelId [07/02/2015 10:33:07] Family6Veh2ModelId [07/02/2015 10:33:07] Family6Veh3ModelId [07/02/2015 10:33:07] Family6Veh4ModelId [07/02/2015 10:33:07] Family6Veh5ModelId [07/02/2015 10:33:07] Family6Veh6ModelId [07/02/2015 10:33:07] Family6Veh7ModelId [07/02/2015 10:33:07] Family7Veh0ModelId [07/02/2015 10:33:07] Family7Veh1ModelId [07/02/2015 10:33:07] Family7Veh2ModelId [07/02/2015 10:33:07] Family7Veh3ModelId [07/02/2015 10:33:07] Family7Veh4ModelId [07/02/2015 10:33:07] Family7Veh5ModelId [07/02/2015 10:33:07] Family7Veh6ModelId [07/02/2015 10:33:07] Family7Veh7ModelId [07/02/2015 10:33:07] Family8Veh0ModelId [07/02/2015 10:33:07] Family8Veh1ModelId [07/02/2015 10:33:07] Family8Veh2ModelId [07/02/2015 10:33:07] Family8Veh3ModelId [07/02/2015 10:33:07] Family8Veh4ModelId [07/02/2015 10:33:07] Family8Veh5ModelId [07/02/2015 10:33:07] Family8Veh6ModelId [07/02/2015 10:33:07] Family8Veh7ModelId [07/02/2015 10:33:07] Family9Veh0ModelId [07/02/2015 10:33:07] Family9Veh1ModelId [07/02/2015 10:33:07] Family9Veh2ModelId [07/02/2015 10:33:07] Family9Veh3ModelId [07/02/2015 10:33:07] Family9Veh4ModelId [07/02/2015 10:33:07] Family9Veh5ModelId [07/02/2015 10:33:07] Family9Veh6ModelId [07/02/2015 10:33:07] Family9Veh7ModelId [07/02/2015 10:33:07] Family10Veh0ModelId [07/02/2015 10:33:07] Family10Veh1ModelId [07/02/2015 10:33:07] Family10Veh2ModelId [07/02/2015 10:33:07] Family10Veh3ModelId [07/02/2015 10:33:07] Family10Veh4ModelId [07/02/2015 10:33:07] Family10Veh5ModelId [07/02/2015 10:33:07] Family10Veh6ModelId [07/02/2015 10:33:07] Family10Veh7ModelId [07/02/2015 10:33:07] Family11Veh0ModelId [07/02/2015 10:33:07] Family11Veh1ModelId [07/02/2015 10:33:07] Family11Veh2ModelId [07/02/2015 10:33:07] Family11Veh3ModelId [07/02/2015 10:33:07] Family11Veh4ModelId [07/02/2015 10:33:07] Family11Veh5ModelId [07/02/2015 10:33:07] Family11Veh6ModelId [07/02/2015 10:33:07] Family11Veh7ModelId [07/02/2015 10:33:07] Family12Veh0ModelId [07/02/2015 10:33:07] Family12Veh1ModelId [07/02/2015 10:33:07] Family12Veh2ModelId [07/02/2015 10:33:07] Family12Veh3ModelId [07/02/2015 10:33:07] Family12Veh4ModelId [07/02/2015 10:33:07] Family12Veh5ModelId [07/02/2015 10:33:07] Family12Veh6ModelId [07/02/2015 10:33:07] Family12Veh7ModelId [07/02/2015 10:33:07] Family13Veh0ModelId [07/02/2015 10:33:07] Family13Veh1ModelId [07/02/2015 10:33:07] Family13Veh2ModelId [07/02/2015 10:33:07] Family13Veh3ModelId [07/02/2015 10:33:07] Family13Veh4ModelId [07/02/2015 10:33:07] Family13Veh5ModelId [07/02/2015 10:33:07] Family13Veh6ModelId [07/02/2015 10:33:07] Family13Veh7ModelId [07/02/2015 10:33:07] Family0Veh0ModelId [07/02/2015 10:33:07] Family0Veh1ModelId [07/02/2015 10:33:07] Family0Veh2ModelId [07/02/2015 10:33:07] Family0Veh3ModelId [07/02/2015 10:33:07] Family0Veh4ModelId [07/02/2015 10:33:07] Family0Veh5ModelId [07/02/2015 10:33:07] Family0Veh6ModelId [07/02/2015 10:33:07] Family0Veh7ModelId [07/02/2015 10:33:07] Family1Veh0ModelId [07/02/2015 10:33:07] Family1Veh1ModelId [07/02/2015 10:33:07] Family1Veh2ModelId [07/02/2015 10:33:07] Family1Veh3ModelId [07/02/2015 10:33:07] Family1Veh4ModelId [07/02/2015 10:33:07] Family1Veh5ModelId [07/02/2015 10:33:07] Family1Veh6ModelId [07/02/2015 10:33:07] Family1Veh7ModelId [07/02/2015 10:33:07] Family2Veh0ModelId [07/02/2015 10:33:07] Family2Veh1ModelId [07/02/2015 10:33:07] Family2Veh2ModelId [07/02/2015 10:33:07] Family2Veh3ModelId [07/02/2015 10:33:07] Family2Veh4ModelId [07/02/2015 10:33:07] Family2Veh5ModelId [07/02/2015 10:33:07] Family2Veh6ModelId [07/02/2015 10:33:07] Family2Veh7ModelId [07/02/2015 10:33:07] Family3Veh0ModelId [07/02/2015 10:33:07] Family3Veh1ModelId [07/02/2015 10:33:07] Family3Veh2ModelId [07/02/2015 10:33:07] Family3Veh3ModelId [07/02/2015 10:33:07] Family3Veh4ModelId [07/02/2015 10:33:07] Family3Veh5ModelId [07/02/2015 10:33:07] Family3Veh6ModelId [07/02/2015 10:33:07] Family3Veh7ModelId [07/02/2015 10:33:07] Family4Veh0ModelId [07/02/2015 10:33:07] Family4Veh1ModelId [07/02/2015 10:33:07] Family4Veh2ModelId [07/02/2015 10:33:07] Family4Veh3ModelId [07/02/2015 10:33:07] Family4Veh4ModelId [07/02/2015 10:33:07] Family4Veh5ModelId [07/02/2015 10:33:07] Family4Veh6ModelId [07/02/2015 10:33:07] Family4Veh7ModelId [07/02/2015 10:33:07] Family5Veh0ModelId [07/02/2015 10:33:07] Family5Veh1ModelId [07/02/2015 10:33:07] Family5Veh2ModelId [07/02/2015 10:33:07] Family5Veh3ModelId [07/02/2015 10:33:07] Family5Veh4ModelId [07/02/2015 10:33:07] Family5Veh5ModelId [07/02/2015 10:33:07] Family5Veh6ModelId [07/02/2015 10:33:07] Family5Veh7ModelId [07/02/2015 10:33:07] Family6Veh0ModelId [07/02/2015 10:33:07] Family6Veh1ModelId [07/02/2015 10:33:07] Family6Veh2ModelId [07/02/2015 10:33:07] Family6Veh3ModelId [07/02/2015 10:33:07] Family6Veh4ModelId [07/02/2015 10:33:07] Family6Veh5ModelId [07/02/2015 10:33:07] Family6Veh6ModelId [07/02/2015 10:33:07] Family6Veh7ModelId [07/02/2015 10:33:07] Family7Veh0ModelId [07/02/2015 10:33:07] Family7Veh1ModelId [07/02/2015 10:33:07] Family7Veh2ModelId [07/02/2015 10:33:07] Family7Veh3ModelId [07/02/2015 10:33:07] Family7Veh4ModelId [07/02/2015 10:33:07] Family7Veh5ModelId [07/02/2015 10:33:07] Family7Veh6ModelId [07/02/2015 10:33:07] Family7Veh7ModelId [07/02/2015 10:33:07] Family8Veh0ModelId [07/02/2015 10:33:07] Family8Veh1ModelId [07/02/2015 10:33:07] Family8Veh2ModelId [07/02/2015 10:33:07] Family8Veh3ModelId [07/02/2015 10:33:07] Family8Veh4ModelId [07/02/2015 10:33:07] Family8Veh5ModelId [07/02/2015 10:33:07] Family8Veh6ModelId [07/02/2015 10:33:07] Family8Veh7ModelId [07/02/2015 10:33:07] Family9Veh0ModelId [07/02/2015 10:33:07] Family9Veh1ModelId [07/02/2015 10:33:07] Family9Veh2ModelId [07/02/2015 10:33:07] Family9Veh3ModelId [07/02/2015 10:33:07] Family9Veh4ModelId [07/02/2015 10:33:07] Family9Veh5ModelId [07/02/2015 10:33:07] Family9Veh6ModelId [07/02/2015 10:33:07] Family9Veh7ModelId [07/02/2015 10:33:07] Family10Veh0ModelId [07/02/2015 10:33:07] Family10Veh1ModelId [07/02/2015 10:33:07] Family10Veh2ModelId [07/02/2015 10:33:07] Family10Veh3ModelId [07/02/2015 10:33:07] Family10Veh4ModelId [07/02/2015 10:33:07] Family10Veh5ModelId [07/02/2015 10:33:07] Family10Veh6ModelId [07/02/2015 10:33:07] Family10Veh7ModelId [07/02/2015 10:33:07] Family11Veh0ModelId [07/02/2015 10:33:07] Family11Veh1ModelId [07/02/2015 10:33:07] Family11Veh2ModelId [07/02/2015 10:33:07] Family11Veh3ModelId [07/02/2015 10:33:07] Family11Veh4ModelId [07/02/2015 10:33:07] Family11Veh5ModelId [07/02/2015 10:33:07] Family11Veh6ModelId [07/02/2015 10:33:07] Family11Veh7ModelId [07/02/2015 10:33:07] Family12Veh0ModelId [07/02/2015 10:33:07] Family12Veh1ModelId [07/02/2015 10:33:07] Family12Veh2ModelId [07/02/2015 10:33:07] Family12Veh3ModelId [07/02/2015 10:33:07] Family12Veh4ModelId [07/02/2015 10:33:07] Family12Veh5ModelId [07/02/2015 10:33:07] Family12Veh6ModelId [07/02/2015 10:33:07] Family12Veh7ModelId [07/02/2015 10:33:07] Family13Veh0ModelId [07/02/2015 10:33:07] Family13Veh1ModelId [07/02/2015 10:33:07] Family13Veh2ModelId [07/02/2015 10:33:07] Family13Veh3ModelId [07/02/2015 10:33:07] Family13Veh4ModelId [07/02/2015 10:33:07] Family13Veh5ModelId [07/02/2015 10:33:07] Family13Veh6ModelId [07/02/2015 10:33:07] Family13Veh7ModelId
Writing code:
Код:
for(new f = 0; f < MAX_FAMILY; f++) { for(new fv = 0; fv < MAX_GANG_VEHICLES; fv++) { new var[32], INI:File = INI_Open(FAMILYHQPATH); INI_SetTag(File, "FamilyCars"); format(var, 32, "Family%dVeh%dModelId", f, fv); INI_WriteInt(File, var, FamilyVehicleInfo[f][fv][fvModelId]); printf(var); } } return 1; }
Код:
[07/02/2015 10:35:21] Family0Veh0ModelId [07/02/2015 10:35:21] Family0Veh1ModelId [07/02/2015 10:35:21] Family0Veh2ModelId [07/02/2015 10:35:21] Family0Veh3ModelId [07/02/2015 10:35:22] Family0Veh4ModelId [07/02/2015 10:35:22] Family0Veh5ModelId [07/02/2015 10:35:22] Family0Veh6ModelId [07/02/2015 10:35:22] Family0Veh7ModelId [07/02/2015 10:35:22] Family1Veh0ModelId [07/02/2015 10:35:22] Family1Veh1ModelId [07/02/2015 10:35:22] Family1Veh2ModelId [07/02/2015 10:35:22] Family1Veh3ModelId [07/02/2015 10:35:22] Family1Veh4ModelId [07/02/2015 10:35:22] Family1Veh5ModelId [07/02/2015 10:35:22] Family1Veh6ModelId [07/02/2015 10:35:22] Family1Veh7ModelId [07/02/2015 10:35:22] Family2Veh0ModelId [07/02/2015 10:35:22] Family2Veh1ModelId [07/02/2015 10:35:22] Family2Veh2ModelId [07/02/2015 10:35:22] Family2Veh3ModelId [07/02/2015 10:35:22] Family2Veh4ModelId [07/02/2015 10:35:22] Family2Veh5ModelId [07/02/2015 10:35:22] Family2Veh6ModelId [07/02/2015 10:35:22] Family2Veh7ModelId [07/02/2015 10:35:22] Family3Veh0ModelId [07/02/2015 10:35:22] Family3Veh1ModelId [07/02/2015 10:35:22] Family3Veh2ModelId [07/02/2015 10:35:22] Family3Veh3ModelId [07/02/2015 10:35:22] Family3Veh4ModelId [07/02/2015 10:35:22] Family3Veh5ModelId [07/02/2015 10:35:23] Family3Veh6ModelId [07/02/2015 10:35:23] Family3Veh7ModelId [07/02/2015 10:35:23] Family4Veh0ModelId [07/02/2015 10:35:23] Family4Veh1ModelId [07/02/2015 10:35:23] Family4Veh2ModelId [07/02/2015 10:35:23] Family4Veh3ModelId [07/02/2015 10:35:23] Family4Veh4ModelId [07/02/2015 10:35:23] Family4Veh5ModelId [07/02/2015 10:35:23] Family4Veh6ModelId [07/02/2015 10:35:23] Family4Veh7ModelId [07/02/2015 10:35:23] Family5Veh0ModelId [07/02/2015 10:35:23] Family5Veh1ModelId [07/02/2015 10:35:23] Family5Veh2ModelId [07/02/2015 10:35:23] Family5Veh3ModelId [07/02/2015 10:35:23] Family5Veh4ModelId [07/02/2015 10:35:23] Family5Veh5ModelId [07/02/2015 10:35:23] Family5Veh6ModelId [07/02/2015 10:35:23] Family5Veh7ModelId [07/02/2015 10:35:23] Family6Veh0ModelId [07/02/2015 10:35:23] Family6Veh1ModelId [07/02/2015 10:35:23] Family6Veh2ModelId [07/02/2015 10:35:23] Family6Veh3ModelId [07/02/2015 10:35:24] Family6Veh4ModelId [07/02/2015 10:35:24] Family6Veh5ModelId [07/02/2015 10:35:24] Family6Veh6ModelId [07/02/2015 10:35:24] Family6Veh7ModelId [07/02/2015 10:35:24] Family7Veh0ModelId [07/02/2015 10:35:24] Family7Veh1ModelId [07/02/2015 10:35:24] Family7Veh2ModelId [07/02/2015 10:35:24] Family7Veh3ModelId [07/02/2015 10:35:24] Family7Veh4ModelId [07/02/2015 10:35:24] Family7Veh5ModelId [07/02/2015 10:35:24] Family7Veh6ModelId [07/02/2015 10:35:24] Family7Veh7ModelId [07/02/2015 10:35:24] Family8Veh0ModelId [07/02/2015 10:35:24] Family8Veh1ModelId [07/02/2015 10:35:24] Family8Veh2ModelId [07/02/2015 10:35:25] Family8Veh3ModelId [07/02/2015 10:35:25] Family8Veh4ModelId [07/02/2015 10:35:25] Family8Veh5ModelId [07/02/2015 10:35:25] Family8Veh6ModelId [07/02/2015 10:35:25] Family8Veh7ModelId [07/02/2015 10:35:25] Family9Veh0ModelId [07/02/2015 10:35:25] Family9Veh1ModelId [07/02/2015 10:35:25] Family9Veh2ModelId [07/02/2015 10:35:25] Family9Veh3ModelId [07/02/2015 10:35:25] Family9Veh4ModelId [07/02/2015 10:35:25] Family9Veh5ModelId [07/02/2015 10:35:25] Family9Veh6ModelId [07/02/2015 10:35:26] Family9Veh7ModelId [07/02/2015 10:35:26] Family10Veh0ModelId [07/02/2015 10:35:26] Family10Veh1ModelId [07/02/2015 10:35:26] Family10Veh2ModelId [07/02/2015 10:35:26] Family10Veh3ModelId [07/02/2015 10:35:26] Family10Veh4ModelId [07/02/2015 10:35:26] Family10Veh5ModelId [07/02/2015 10:35:26] Family10Veh6ModelId [07/02/2015 10:35:26] Family10Veh7ModelId [07/02/2015 10:35:26] Family11Veh0ModelId [07/02/2015 10:35:26] Family11Veh1ModelId [07/02/2015 10:35:27] Family11Veh2ModelId [07/02/2015 10:35:27] Family11Veh3ModelId [07/02/2015 10:35:27] Family11Veh4ModelId [07/02/2015 10:35:27] Family11Veh5ModelId [07/02/2015 10:35:27] Family11Veh6ModelId [07/02/2015 10:35:27] Family11Veh7ModelId [07/02/2015 10:35:27] Family12Veh0ModelId [07/02/2015 10:35:27] Family12Veh1ModelId [07/02/2015 10:35:27] Family12Veh2ModelId [07/02/2015 10:35:27] Family12Veh3ModelId [07/02/2015 10:35:28] Family12Veh4ModelId [07/02/2015 10:35:28] Family12Veh5ModelId [07/02/2015 10:35:28] Family12Veh6ModelId [07/02/2015 10:35:28] Family12Veh7ModelId [07/02/2015 10:35:28] Family13Veh0ModelId [07/02/2015 10:35:28] Family13Veh1ModelId [07/02/2015 10:35:28] Family13Veh2ModelId [07/02/2015 10:35:28] Family13Veh3ModelId [07/02/2015 10:35:28] Family13Veh4ModelId [07/02/2015 10:35:29] Family13Veh5ModelId [07/02/2015 10:35:29] Family13Veh6ModelId [07/02/2015 10:35:29] Family13Veh7ModelId