SA-MP Forums Archive
Load of map - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Load of map (/showthread.php?tid=406659)



Load of map - Kuroki - 11.01.2013

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


Re: Load of map - Kuroki - 11.01.2013

help


Re: Load of map - Kuroki - 12.01.2013

help please


Re: Load of map - Kuroki - 14.01.2013

help me


Re: Load of map - serdar189 - 15.04.2014

I have the same problem please help


Re: Load of map - Akira297 - 15.04.2014

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