14.12.2014, 12:55
The problem:
It writes:
Objects Loaded: 133
But I do not see the objects on the server.
ongamemodeinit:
scriptfiles:
(ObjectsOrginalDM.ini)
please help
It writes:
Objects Loaded: 133
But I do not see the objects on the server.
PHP код:
stock LoadObjectsFromFile(const filename[])
{
new File:file = fopen(filename, io_read);
if (!file) return 0;
TotalObjects = 0;
new line[100], modelid, Float:Pos[6];
while (fread(file, line))
{
// Use "," as delimiter and read one integer and 6 floats, and store the values in the following variables
sscanf(line, "p<,>iffffff", modelid, Pos[0], Pos[1], Pos[2], Pos[3], Pos[4], Pos[5]);
Object[TotalObjects] = CreateDynamicObject(modelid, Pos[0], Pos[1], Pos[2], Pos[3], Pos[4], Pos[5]);
TotalObjects++;
}
fclose(file);
return printf("Objects Loaded: %d", TotalObjects);
}
PHP код:
LoadObjectsFromFile("ObjectsOrginalDM.ini");
(ObjectsOrginalDM.ini)
PHP код:
3437, 649.21832, 3290.23438, 37.47931, 0.00000, 0.00000, 77.03101
3437, 651.81696, 3291.36621, 38.98025, 0.00000, 0.00000, 77.03101
3437, 655.00085, 3292.13477, 40.42402, 0.00000, 0.00000, 77.03101
3437, 681.64880, 3291.01489, 37.47931, 0.00000, 0.00000, 77.03101
3437, 678.86755, 3292.14038, 38.56862, 0.00000, 0.00000, 77.03101
3437, 675.78217, 3293.15991, 40.21270, 0.00000, 0.00000, 77.03101
3437, 672.44257, 3293.74731, 41.12884, 0.00000, 0.00000, 77.03101
3437, 658.30396, 3292.69775, 41.03405, 0.00000, 0.00000, 77.03101
3437, 661.25580, 3293.47754, 41.84716, 0.00000, 0.00000, 77.03101
3437, 664.88409, 3294.32959, 42.35726, 0.00000, 0.00000, 77.03101
3437, 668.83344, 3294.09619, 41.76023, 0.00000, 0.00000, 77.03101
18783, 664.56647, 3252.11694, 33.12000, 0.00000, 0.00000, 0.00000
18783, 644.59003, 3252.13989, 33.12000, 0.00000, 0.00000, 0.00000
18783, 684.15997, 3292.07007, 37.97000, 0.00000, 0.00000, 0.00000
18783, 684.21002, 3272.09009, 37.97000, 0.00000, 0.00000, 0.00000
18785, 664.37000, 3272.09009, 37.97000, 0.00000, 0.00000, 180.00000
18783, 684.46997, 3252.13989, 33.12000, 0.00000, 0.00000, 0.00000
18783, 644.73999, 3272.09009, 37.97000, 0.00000, 0.00000, 0.00000
18783, 644.83002, 3292.07007, 37.97000, 0.00000, 0.00000, 0.00000
18783, 664.56055, 3292.10010, 37.97000, 0.00000, 0.00000, 0.00000
19129, 684.53998, 3242.12988, 25.59000, 90.00000, 0.00000, 0.00000
19129, 644.51953, 3242.20947, 25.59000, 90.00000, 0.00000, 0.00000
19129, 664.56750, 3242.06787, 25.59000, 90.00000, 0.00000, 0.00000
19129, 674.23999, 3272.01001, 30.35000, 90.00000, 0.00000, 270.00000
19129, 684.21002, 3262.11011, 30.40000, 90.00000, 0.00000, 0.00000
19129, 644.75043, 3262.10425, 30.40000, 90.00000, 0.00000, 0.00000
19129, 654.73999, 3272.08008, 30.35000, 90.00000, 0.00000, 90.00000
19071, 705.41772, 3280.02832, 31.04379, 0.00000, 0.00000, 2.40554
19071, 633.17999, 3321.73999, 30.38000, 0.00000, 0.00000, 90.00000
19071, 692.90002, 3321.67993, 30.38000, 0.00000, 0.00000, 90.00000
19128, 645.47998, 3289.73999, 46.48000, 90.00000, 0.00000, 0.00000
19128, 645.45313, 3289.73120, 50.44000, 90.00000, 0.00000, 0.00000
19128, 685.17157, 3291.74951, 52.37586, 0.00000, 0.00000, 359.70932
19128, 649.36859, 3289.73584, 50.44200, 90.00000, 0.00000, 0.00000
19128, 685.07080, 3289.71533, 50.44000, 90.00000, 0.00000, 0.00000
19128, 685.07001, 3289.73999, 46.48000, 90.00000, 0.00000, 0.00000
19128, 683.12000, 3291.67993, 42.52000, 90.00000, 0.00000, -90.00000
19128, 645.47998, 3289.73999, 42.52000, 90.00000, 0.00000, 0.00000
19128, 647.44037, 3291.63550, 46.48000, 90.00000, 0.00000, 90.00000
19128, 647.41998, 3291.66992, 42.49000, 90.00000, 0.00000, 90.00000
19128, 685.09003, 3289.73999, 42.52000, 90.00000, 0.00000, 0.00000
19128, 683.11951, 3291.74219, 46.48000, 90.00000, 0.00000, -90.00000
19128, 681.20880, 3291.72925, 48.48150, -180.00000, 0.00000, 270.85861
19332, 639.28748, 3306.71826, 53.40821, 0.00000, 0.00000, 0.00000
19335, 688.96405, 3304.99512, 53.29584, 0.00000, 0.00000, 358.03851
19128, 653.36920, 3289.72314, 50.44200, 90.00000, 0.00000, 0.00000
19128, 657.27869, 3289.72314, 50.44200, 90.00000, 0.00000, 0.00000
19128, 661.24353, 3289.72314, 50.44200, 90.00000, 0.00000, 0.00000
19128, 665.21625, 3289.71948, 50.44200, 90.00000, 0.00000, 0.00000
19128, 669.17719, 3289.72510, 50.44200, 90.00000, 0.00000, 0.00000
19128, 673.10992, 3289.73022, 50.44200, 90.00000, 0.00000, 0.00000
19128, 677.06989, 3289.74463, 50.44200, 90.00000, 0.00000, 0.00000
19128, 681.05219, 3289.73877, 50.44200, 90.00000, 0.00000, 0.00000
19128, 687.04468, 3291.68481, 42.43370, 90.00000, 0.00000, 91.02020
19128, 687.04468, 3291.68481, 46.36985, 90.00000, 0.00000, 91.02020
19128, 687.04468, 3291.68481, 50.38916, 90.00000, 0.00000, 91.02020
19128, 685.01746, 3293.68481, 42.52000, 90.00000, -180.00000, 0.00000
19128, 685.01746, 3293.68481, 46.49720, 90.00000, -180.00000, 0.00000
19128, 685.01746, 3293.68481, 50.43221, 90.00000, -180.00000, 0.00000
19128, 681.01678, 3293.68335, 50.43221, 90.00000, -180.00000, 0.00000
19128, 677.12140, 3291.72900, 48.48150, -180.00000, 0.00000, 270.24338
19128, 673.17749, 3291.69653, 48.48150, -180.00000, 0.00000, 270.85861
19128, 669.53168, 3291.69824, 48.48150, -180.00000, 0.00000, 270.50916
19128, 665.63239, 3291.68872, 48.48150, -180.00000, 0.00000, 270.85861
19128, 661.73578, 3291.69287, 48.48150, -180.00000, 0.00000, 269.72073
19128, 657.86884, 3291.69385, 48.48150, -180.00000, 0.00000, 270.85861
19128, 653.87982, 3291.67432, 48.48150, -180.00000, 0.00000, 270.23724
19128, 649.88611, 3291.68140, 48.48150, -180.00000, 0.00000, 270.23721
19128, 649.39117, 3291.67578, 48.48150, -180.00000, 0.00000, 270.23721
19128, 677.09760, 3293.68848, 50.43220, 90.00000, -180.00000, 0.00000
19128, 673.13953, 3293.67920, 50.43220, 90.00000, -180.00000, 0.00000
19128, 669.18732, 3293.67725, 50.43220, 90.00000, -180.00000, 0.00000
19128, 665.20782, 3293.68359, 50.43220, 90.00000, -180.00000, 0.00000
19128, 661.23169, 3293.66992, 50.43220, 90.00000, -180.00000, 0.00000
19128, 657.24225, 3293.68604, 50.43220, 90.00000, -180.00000, 0.00000
19128, 653.22260, 3293.69629, 50.43220, 90.00000, -180.00000, 0.00000
19128, 649.24054, 3293.71265, 50.43220, 90.00000, -180.00000, 0.00000
3437, 664.70514, 3247.89038, 35.18430, -88.00000, 0.00000, 0.92760
3437, 664.56372, 3259.64502, 35.18430, -87.98000, 0.00000, 179.65956
19128, 645.49463, 3293.73901, 50.44200, 90.00000, -180.00000, 0.00000
19128, 645.50354, 3293.72559, 46.49140, 90.00000, -180.00000, 0.00000
19128, 645.50354, 3293.72559, 42.47449, 90.00000, -180.00000, 0.00000
19128, 643.55298, 3291.74023, 42.39940, -90.00000, 0.00000, 90.00000
19128, 643.55298, 3291.74023, 46.36335, -90.00000, 0.00000, 90.00000
19128, 643.51300, 3291.72021, 50.29900, -90.00000, 0.00000, 90.00000
19128, 681.25250, 3291.73975, 52.37590, 0.00000, 0.00000, 0.52250
19128, 677.31598, 3291.70386, 52.37590, 0.00000, 0.00000, 0.52250
19128, 669.40643, 3291.74756, 52.37590, 0.00000, 0.00000, 359.58566
19128, 673.33038, 3291.69312, 52.37590, 0.00000, 0.00000, 0.52250
19128, 665.55652, 3291.74561, 52.37590, 0.00000, 0.00000, 0.11646
19128, 661.66718, 3291.68457, 52.37590, 0.00000, 0.00000, 359.47629
19128, 657.84607, 3291.68188, 52.37590, 0.00000, 0.00000, 359.29205
19128, 653.91370, 3291.74219, 52.37590, 0.00000, 0.00000, 359.29205
19128, 650.09186, 3291.73633, 52.37590, 0.00000, 0.00000, 359.29205
19128, 646.15387, 3291.76318, 52.37590, 0.00000, 0.00000, 359.29205
19128, 645.52332, 3291.70313, 52.37590, 0.00000, 0.00000, 359.29205
3437, 657.97101, 3253.35376, 35.16330, -88.00000, 0.00000, 272.32510
3437, 671.34650, 3254.29785, 35.16330, -88.00000, 0.00000, 92.44600
3437, 668.49249, 3259.22827, 35.18430, -88.00000, 0.00000, 150.30000
3437, 660.19501, 3258.88232, 35.18430, -88.00000, 0.00000, 220.13921
3437, 669.22406, 3248.37573, 35.20430, -88.00000, 0.00000, 35.64230
3437, 660.50726, 3248.06323, 35.20430, -88.00000, 0.00000, 323.40460
19072, 704.09473, 3325.04468, 35.24009, 20.00000, 0.00000, 0.14383
19072, 662.17401, 3325.05420, 35.23990, 20.00000, 0.00000, 0.00000
19072, 620.47980, 3324.99902, 35.23990, 20.00000, 0.00000, 0.00000
19071, 622.99194, 3274.93311, 31.04379, 0.00000, 0.00000, 2.40554
19072, 620.08575, 3362.72046, 44.63733, 20.00000, 0.00000, 2.05526
19072, 661.76892, 3364.25586, 44.63733, 20.00000, 0.00000, 2.05526
19072, 703.64783, 3364.92822, 44.63733, 20.00000, 0.00000, 2.05526
19071, 705.63892, 3272.94995, 31.04380, 0.00000, 0.00000, 2.40550
19071, 632.71210, 3220.19653, 31.04380, 0.00000, 0.00000, 90.54535
19071, 692.56287, 3221.02612, 31.04380, 0.00000, 0.00000, 91.08684
19129, 644.63708, 3252.10181, 35.58840, 0.00000, 0.00000, 0.00000
19129, 644.69379, 3252.24707, 35.68840, 0.00000, 0.00000, 0.00000
19129, 644.66180, 3252.46851, 35.80840, 0.00000, 0.00000, 0.00000
19129, 644.68036, 3252.79053, 35.94840, 0.00000, 0.00000, 0.00000
19129, 644.67987, 3253.04297, 36.06840, 0.00000, 0.00000, 0.00000
19129, 644.73016, 3253.27075, 36.24840, 0.00000, 0.00000, 0.00000
19129, 644.72363, 3253.54321, 36.36840, 0.00000, 0.00000, 0.00000
19129, 684.51862, 3252.13696, 35.58840, 0.00000, 0.00000, 0.00000
19129, 684.51483, 3252.33716, 35.72840, 0.00000, 0.00000, 0.00000
19129, 684.54913, 3252.63794, 35.84840, 0.00000, 0.00000, 0.00000
19129, 684.50354, 3252.93726, 35.96840, 0.00000, 0.00000, 0.00000
19129, 684.51691, 3253.29810, 36.04840, 0.00000, 0.00000, 0.00000
19129, 684.53210, 3253.55884, 36.12840, 0.00000, 0.00000, 0.00000
19129, 684.49213, 3253.89624, 36.20840, 0.00000, 0.00000, 0.00000
19129, 684.53442, 3254.28931, 36.30840, 0.00000, 0.00000, 0.00000
18728, 657.86841, 3272.33130, 38.76940, 0.00000, 0.00000, 0.00000
18728, 670.84259, 3274.69849, 39.45215, 0.00000, 0.00000, 0.00000
8493, 634.42773, 3287.63184, 49.40607, 42.00000, 0.00000, 268.07562
8493, 694.59894, 3284.12183, 49.40607, 42.00000, 0.00000, 84.67617
7666, -941.37683, 13224.44727, 4103.21777, 0.00000, 0.00000, 0.00000
8620, 664.59192, 3284.58765, 26.08226, 0.00000, 0.00000, 358.66342