problem - load objects
#1

The problem:

It writes:
Objects Loaded: 133

But I do not see the objects on the server.


PHP код:
stock LoadObjectsFromFile(const filename[])
{
    new 
File:file fopen(filenameio_read);
    if (!
file) return 0;
    
TotalObjects 0;
    new 
line[100], modelidFloat:Pos[6];
    while (
fread(fileline))
    {
        
// Use "," as delimiter and read one integer and 6 floats, and store the values in the following variables
        
sscanf(line"p<,>iffffff"modelidPos[0], Pos[1], Pos[2], Pos[3], Pos[4], Pos[5]);
        
Object[TotalObjects] = CreateDynamicObject(modelidPos[0], Pos[1], Pos[2], Pos[3], Pos[4], Pos[5]);
           
TotalObjects++;
      }
    
fclose(file);
    return 
printf("Objects Loaded: %d"TotalObjects);

ongamemodeinit:
PHP код:
    LoadObjectsFromFile("ObjectsOrginalDM.ini"); 
scriptfiles:
(ObjectsOrginalDM.ini)
PHP код:
3437649.218323290.2343837.47931,   0.000000.0000077.03101
3437
651.816963291.3662138.98025,   0.000000.0000077.03101
3437
655.000853292.1347740.42402,   0.000000.0000077.03101
3437
681.648803291.0148937.47931,   0.000000.0000077.03101
3437
678.867553292.1403838.56862,   0.000000.0000077.03101
3437
675.782173293.1599140.21270,   0.000000.0000077.03101
3437
672.442573293.7473141.12884,   0.000000.0000077.03101
3437
658.303963292.6977541.03405,   0.000000.0000077.03101
3437
661.255803293.4775441.84716,   0.000000.0000077.03101
3437
664.884093294.3295942.35726,   0.000000.0000077.03101
3437
668.833443294.0961941.76023,   0.000000.0000077.03101
18783
664.566473252.1169433.12000,   0.000000.000000.00000
18783
644.590033252.1398933.12000,   0.000000.000000.00000
18783
684.159973292.0700737.97000,   0.000000.000000.00000
18783
684.210023272.0900937.97000,   0.000000.000000.00000
18785
664.370003272.0900937.97000,   0.000000.00000180.00000
18783
684.469973252.1398933.12000,   0.000000.000000.00000
18783
644.739993272.0900937.97000,   0.000000.000000.00000
18783
644.830023292.0700737.97000,   0.000000.000000.00000
18783
664.560553292.1001037.97000,   0.000000.000000.00000
19129
684.539983242.1298825.59000,   90.000000.000000.00000
19129
644.519533242.2094725.59000,   90.000000.000000.00000
19129
664.567503242.0678725.59000,   90.000000.000000.00000
19129
674.239993272.0100130.35000,   90.000000.00000270.00000
19129
684.210023262.1101130.40000,   90.000000.000000.00000
19129
644.750433262.1042530.40000,   90.000000.000000.00000
19129
654.739993272.0800830.35000,   90.000000.0000090.00000
19071
705.417723280.0283231.04379,   0.000000.000002.40554
19071
633.179993321.7399930.38000,   0.000000.0000090.00000
19071
692.900023321.6799330.38000,   0.000000.0000090.00000
19128
645.479983289.7399946.48000,   90.000000.000000.00000
19128
645.453133289.7312050.44000,   90.000000.000000.00000
19128
685.171573291.7495152.37586,   0.000000.00000359.70932
19128
649.368593289.7358450.44200,   90.000000.000000.00000
19128
685.070803289.7153350.44000,   90.000000.000000.00000
19128
685.070013289.7399946.48000,   90.000000.000000.00000
19128
683.120003291.6799342.52000,   90.000000.00000, -90.00000
19128
645.479983289.7399942.52000,   90.000000.000000.00000
19128
647.440373291.6355046.48000,   90.000000.0000090.00000
19128
647.419983291.6699242.49000,   90.000000.0000090.00000
19128
685.090033289.7399942.52000,   90.000000.000000.00000
19128
683.119513291.7421946.48000,   90.000000.00000, -90.00000
19128
681.208803291.7292548.48150,   -180.000000.00000270.85861
19332
639.287483306.7182653.40821,   0.000000.000000.00000
19335
688.964053304.9951253.29584,   0.000000.00000358.03851
19128
653.369203289.7231450.44200,   90.000000.000000.00000
19128
657.278693289.7231450.44200,   90.000000.000000.00000
19128
661.243533289.7231450.44200,   90.000000.000000.00000
19128
665.216253289.7194850.44200,   90.000000.000000.00000
19128
669.177193289.7251050.44200,   90.000000.000000.00000
19128
673.109923289.7302250.44200,   90.000000.000000.00000
19128
677.069893289.7446350.44200,   90.000000.000000.00000
19128
681.052193289.7387750.44200,   90.000000.000000.00000
19128
687.044683291.6848142.43370,   90.000000.0000091.02020
19128
687.044683291.6848146.36985,   90.000000.0000091.02020
19128
687.044683291.6848150.38916,   90.000000.0000091.02020
19128
685.017463293.6848142.52000,   90.00000, -180.000000.00000
19128
685.017463293.6848146.49720,   90.00000, -180.000000.00000
19128
685.017463293.6848150.43221,   90.00000, -180.000000.00000
19128
681.016783293.6833550.43221,   90.00000, -180.000000.00000
19128
677.121403291.7290048.48150,   -180.000000.00000270.24338
19128
673.177493291.6965348.48150,   -180.000000.00000270.85861
19128
669.531683291.6982448.48150,   -180.000000.00000270.50916
19128
665.632393291.6887248.48150,   -180.000000.00000270.85861
19128
661.735783291.6928748.48150,   -180.000000.00000269.72073
19128
657.868843291.6938548.48150,   -180.000000.00000270.85861
19128
653.879823291.6743248.48150,   -180.000000.00000270.23724
19128
649.886113291.6814048.48150,   -180.000000.00000270.23721
19128
649.391173291.6757848.48150,   -180.000000.00000270.23721
19128
677.097603293.6884850.43220,   90.00000, -180.000000.00000
19128
673.139533293.6792050.43220,   90.00000, -180.000000.00000
19128
669.187323293.6772550.43220,   90.00000, -180.000000.00000
19128
665.207823293.6835950.43220,   90.00000, -180.000000.00000
19128
661.231693293.6699250.43220,   90.00000, -180.000000.00000
19128
657.242253293.6860450.43220,   90.00000, -180.000000.00000
19128
653.222603293.6962950.43220,   90.00000, -180.000000.00000
19128
649.240543293.7126550.43220,   90.00000, -180.000000.00000
3437
664.705143247.8903835.18430,   -88.000000.000000.92760
3437
664.563723259.6450235.18430,   -87.980000.00000179.65956
19128
645.494633293.7390150.44200,   90.00000, -180.000000.00000
19128
645.503543293.7255946.49140,   90.00000, -180.000000.00000
19128
645.503543293.7255942.47449,   90.00000, -180.000000.00000
19128
643.552983291.7402342.39940,   -90.000000.0000090.00000
19128
643.552983291.7402346.36335,   -90.000000.0000090.00000
19128
643.513003291.7202150.29900,   -90.000000.0000090.00000
19128
681.252503291.7397552.37590,   0.000000.000000.52250
19128
677.315983291.7038652.37590,   0.000000.000000.52250
19128
669.406433291.7475652.37590,   0.000000.00000359.58566
19128
673.330383291.6931252.37590,   0.000000.000000.52250
19128
665.556523291.7456152.37590,   0.000000.000000.11646
19128
661.667183291.6845752.37590,   0.000000.00000359.47629
19128
657.846073291.6818852.37590,   0.000000.00000359.29205
19128
653.913703291.7421952.37590,   0.000000.00000359.29205
19128
650.091863291.7363352.37590,   0.000000.00000359.29205
19128
646.153873291.7631852.37590,   0.000000.00000359.29205
19128
645.523323291.7031352.37590,   0.000000.00000359.29205
3437
657.971013253.3537635.16330,   -88.000000.00000272.32510
3437
671.346503254.2978535.16330,   -88.000000.0000092.44600
3437
668.492493259.2282735.18430,   -88.000000.00000150.30000
3437
660.195013258.8823235.18430,   -88.000000.00000220.13921
3437
669.224063248.3757335.20430,   -88.000000.0000035.64230
3437
660.507263248.0632335.20430,   -88.000000.00000323.40460
19072
704.094733325.0446835.24009,   20.000000.000000.14383
19072
662.174013325.0542035.23990,   20.000000.000000.00000
19072
620.479803324.9990235.23990,   20.000000.000000.00000
19071
622.991943274.9331131.04379,   0.000000.000002.40554
19072
620.085753362.7204644.63733,   20.000000.000002.05526
19072
661.768923364.2558644.63733,   20.000000.000002.05526
19072
703.647833364.9282244.63733,   20.000000.000002.05526
19071
705.638923272.9499531.04380,   0.000000.000002.40550
19071
632.712103220.1965331.04380,   0.000000.0000090.54535
19071
692.562873221.0261231.04380,   0.000000.0000091.08684
19129
644.637083252.1018135.58840,   0.000000.000000.00000
19129
644.693793252.2470735.68840,   0.000000.000000.00000
19129
644.661803252.4685135.80840,   0.000000.000000.00000
19129
644.680363252.7905335.94840,   0.000000.000000.00000
19129
644.679873253.0429736.06840,   0.000000.000000.00000
19129
644.730163253.2707536.24840,   0.000000.000000.00000
19129
644.723633253.5432136.36840,   0.000000.000000.00000
19129
684.518623252.1369635.58840,   0.000000.000000.00000
19129
684.514833252.3371635.72840,   0.000000.000000.00000
19129
684.549133252.6379435.84840,   0.000000.000000.00000
19129
684.503543252.9372635.96840,   0.000000.000000.00000
19129
684.516913253.2981036.04840,   0.000000.000000.00000
19129
684.532103253.5588436.12840,   0.000000.000000.00000
19129
684.492133253.8962436.20840,   0.000000.000000.00000
19129
684.534423254.2893136.30840,   0.000000.000000.00000
18728
657.868413272.3313038.76940,   0.000000.000000.00000
18728
670.842593274.6984939.45215,   0.000000.000000.00000
8493
634.427733287.6318449.40607,   42.000000.00000268.07562
8493
694.598943284.1218349.40607,   42.000000.0000084.67617
7666
, -941.3768313224.447274103.21777,   0.000000.000000.00000
8620
664.591923284.5876526.08226,   0.000000.00000358.66342 
please help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)