load command for streamed maps
#1

______
Reply
#2

I'll use ZCMD.

pawn Код:
CMD:load(playerid, params[])
{
    //for(new i; i < MAX_OBJECTS; ++i) DestroyDynamicObject(i); // if you want to destroy the objects and load again uncomment this.
    //here all your CreateDynamicObject that you want to load again.
    return 1;
}
If you want to load some objects you can do:

pawn Код:
new ObjArray[count your objects];
and then:

pawn Код:
ObjArray[0] = CreateDynamicObject...
ObjArray[1] = CreateDynamicObject...
ObjArray[2] = CreateDynamicObject...
...
and then in the command you have to put to destroy these objects and load again:

pawn Код:
CMD:load(playerid, params[])
{
    //for(new i; i < sizeof(ObjArray); ++i) DestroyDynamicObject(ObjArray[i]); // if you want to destroy the objects and load again uncomment this.
    for(new o; o < sizeof(ObjArray); ++o) ObjArray[o] = CreateDynamicObject...
    return 1;
}

Good luck!
Reply
#3

I know about this but i wont do that ob 17k objects. Is there any other method?
Reply
#4

there is... let me think
Reply
#5

Load them from a .txt file
Reply
#6

Quote:
Originally Posted by Hoss
Посмотреть сообщение
Load them from a .txt file
No advantage
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)