Putting objects in another virtual world
#1

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 ")"
Reply
#2

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)