Load of map
#1

I use the xml load of map but at the load of map server hangs up on about 8 seconds in this pablik help to correct

Here is my Public download:
PHP код:
LoadObjects(FileName[])
{
    new 
XML:file xml_open(FileName);
    
#define STRING_LENG 256
    
new string[STRING_LENG];
    for(new 
1;<= xml_get_int(file"count(map/object)");i++)
    {
        new 
modelFloat:pos[6];
        
format(stringSTRING_LENG"map/object[%d]/@model"i);
        
model xml_get_int(filestring);
        
format(stringSTRING_LENG"map/object[%d]/@posX"i);
        
pos[0] = xml_get_float(filestring);
        
format(stringSTRING_LENG"map/object[%d]/@posY"i);
        
pos[1] = xml_get_float(filestring);
        
format(stringSTRING_LENG"map/object[%d]/@posZ"i);
        
pos[2] = xml_get_float(filestring);
        
format(stringSTRING_LENG"map/object[%d]/@rotX"i);
        
pos[3] = xml_get_float(filestring);
        
format(stringSTRING_LENG"map/object[%d]/@rotY"i);
        
pos[4] = xml_get_float(filestring);
        
format(stringSTRING_LENG"map/object[%d]/@rotZ"i);
        
pos[5] = xml_get_float(filestring);
        
CreateDynamicObject(modelpos[0], pos[1], pos[2], pos[3], pos[4], pos[5], -1, -1, -1GLOBAL_OBJECTS_DISTANCE);
    }
    
#undef STRING_LENG
    
xml_close(file);
    return 
true;

Beforehand thank you
Reply


Messages In This Thread
Load of map - by Kuroki - 11.01.2013, 07:36
Re: Load of map - by Kuroki - 11.01.2013, 10:50
Re: Load of map - by Kuroki - 12.01.2013, 10:04
Re: Load of map - by Kuroki - 14.01.2013, 18:12
Re: Load of map - by serdar189 - 15.04.2014, 08:01
Re: Load of map - by Akira297 - 15.04.2014, 10:43

Forum Jump:


Users browsing this thread: 2 Guest(s)