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
#2

help
Reply
#3

help please
Reply
#4

help me
Reply
#5

I have the same problem please help
Reply
#6

The only thing I can tell you two is look at the original thread to this project.

- https://sampforum.blast.hk/showthread.php?tid=150755
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)