CreateDynamicObject(8558,763.59997559,-2281.00000000,26.50000000,90.00000000,180.00000000,270.00000000, WIRTUALWORLD, 0, -1, 500.0);
stock SetObjVirtualWorld(objectid, VW)
{
Streamer_SetIntData(0,objectid,E_STREAMER_WORLD_ID, VW);
return id;
}
CreateDynamicObject2(model, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
CreateVWDynamicObject(25, model, x, y, z, rx, ry, rz);
}
|
not for all. when i used YSI Streamer, I made a simple thing I:
Код:
CreateDynamicObject2(model, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
CreateVWDynamicObject(25, model, x, y, z, rx, ry, rz);
}
|
stock CreateDObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid, interiorid, playerid, Float:streamdistance)
{
new id = CreateDynamicObject(25, x, y, z, rx, ry, rz, worldid, interiorid, playerid,streamdistance);//change world id
return id;
}
|
like this?
Код:
stock CreateDObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid, interiorid, playerid, Float:streamdistance)
{
new id = CreateDynamicObject(25, x, y, z, rx, ry, rz, worldid, interiorid, playerid,streamdistance);//change world id
return id;
}
|
stock CreateDObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid, interiorid, playerid, Float:streamdistance)
{
CreateDynamicObject(modelid, x, y, z, rx, ry, rz, 1, interiorid, playerid,streamdistance);
}
CreateDObject(3049,1978.66760254,1916.00366211,132.17665100,0.00000000,0.00000000,87.33950806); //object(des_quarrygate) (17)
C:\Users\Karolis\Desktop\GTA-MP.LT Free-Roam\gamemodes\gm.pwn(2955) : warning 202: number of arguments does not match definition C:\Users\Karolis\Desktop\GTA-MP.LT Free-Roam\gamemodes\gm.pwn(2955) : warning 202: number of arguments does not match definition C:\Users\Karolis\Desktop\GTA-MP.LT Free-Roam\gamemodes\gm.pwn(2955) : warning 202: number of arguments does not match definition C:\Users\Karolis\Desktop\GTA-MP.LT Free-Roam\gamemodes\gm.pwn(2955) : warning 202: number of arguments does not match definition C:\Users\Karolis\Desktop\GTA-MP.LT Free-Roam\gamemodes\gm.pwn(3906) : warning 203: symbol is never used: "worldid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Warnings.