SA-MP Forums Archive
Putting objects in another virtual world - 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: Putting objects in another virtual world (/showthread.php?tid=560451)



Putting objects in another virtual world - Luke_James - 28.01.2015

I want to put objects for an interior in another virtual world, how could I go about doing it? For instance, this is my mapping filterscript...

pawn Код:
#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Map");
    print("--------------------------------------\n");
   
    //Pershing Square
    CreateDynamicObject(10432, -2545.52759, -104.59291, 22.31250,   356.85840, 0.00000, 3.14159);
    CreateDynamicObject(19381, 1519.50085, -1634.46240, 12.27310,   0.00000, 90.00000, 0.00000);
    CreateDynamicObject(19381, 1519.50537, -1624.85620, 12.27310,   0.00000, 90.00000, 0.00000);
    return 1;
}
public OnFilterScriptExit()
{
    return 1;
}
I've tried doing this...
pawn Код:
#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Map");
    print("--------------------------------------\n");
   
    //Pershing Square
    CreateDynamicObject(10432, -2545.52759, -104.59291, 22.31250,   356.85840, 0.00000, 3.14159, worldid = 3, Float:distance = 200.0);
    CreateDynamicObject(19381, 1519.50085, -1634.46240, 12.27310,   0.00000, 90.00000, 0.00000, worldid = 3, Float:distance = 200.0);
    CreateDynamicObject(19381, 1519.50537, -1624.85620, 12.27310,   0.00000, 90.00000, 0.00000, worldid = 3, Float:distance = 200.0);
    return 1;
}
public OnFilterScriptExit()
{
    return 1;
}
But I get these errors...

Код:
error 017: undefined symbol "worldid"
warning 215: expression has no effect
error 017: undefined symbol "distance"
warning 215: expression has no effect
 error 001: expected token: ";", but found ")"



Re: Putting objects in another virtual world - Glenn332 - 28.01.2015

Quote:
Originally Posted by Luke_James
Посмотреть сообщение
I want to put objects for an interior in another virtual world, how could I go about doing it? For instance, this is my mapping filterscript...

pawn Код:
#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Map");
    print("--------------------------------------\n");
   
    //Pershing Square
    CreateDynamicObject(10432, -2545.52759, -104.59291, 22.31250,   356.85840, 0.00000, 3.14159);
    CreateDynamicObject(19381, 1519.50085, -1634.46240, 12.27310,   0.00000, 90.00000, 0.00000);
    CreateDynamicObject(19381, 1519.50537, -1624.85620, 12.27310,   0.00000, 90.00000, 0.00000);
    return 1;
}
public OnFilterScriptExit()
{
    return 1;
}
I've tried doing this...
pawn Код:
#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Map");
    print("--------------------------------------\n");
   
    //Pershing Square
    CreateDynamicObject(10432, -2545.52759, -104.59291, 22.31250,   356.85840, 0.00000, 3.14159, worldid = 3, Float:distance = 200.0);
    CreateDynamicObject(19381, 1519.50085, -1634.46240, 12.27310,   0.00000, 90.00000, 0.00000, worldid = 3, Float:distance = 200.0);
    CreateDynamicObject(19381, 1519.50537, -1624.85620, 12.27310,   0.00000, 90.00000, 0.00000, worldid = 3, Float:distance = 200.0);
    return 1;
}
public OnFilterScriptExit()
{
    return 1;
}
But I get these errors...

Код:
error 017: undefined symbol "worldid"
warning 215: expression has no effect
error 017: undefined symbol "distance"
warning 215: expression has no effect
 error 001: expected token: ";", but found ")"
Try this Luke.

pawn Код:
#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Map");
    print("--------------------------------------\n");
   
    //Pershing Square
    CreateDynamicObject(10432, -2545.52759, -104.59291, 22.31250,   356.85840, 0.00000, 3.14159, 3, 200.0);
    CreateDynamicObject(19381, 1519.50085, -1634.46240, 12.27310,   0.00000, 90.00000, 0.00000, 3, 200.0);
    CreateDynamicObject(19381, 1519.50537, -1624.85620, 12.27310,   0.00000, 90.00000, 0.00000, 3, 200.0);
    return 1;
}
public OnFilterScriptExit()
{
    return 1;
}