Can someone help me adding objects
#1

So basically i made some objects in SA-MP Construction. i made it as CreateDynamicObject. i also put it as a filterscript however i have this problem when ever i go far from that object the object disappears. no i have streamfix and shit it happens to people on my server aswell. i used this tutorial https://sampforum.blast.hk/showthread.php?tid=276499


PHP код:
CreateDynamicObject(15242108.42114, -1733.4354215.43333,   0.000000.00000337.96570);
CreateDynamicObject(15312106.26904, -1739.5606714.73252,   0.000000.00000346.94714);
CreateDynamicObject(16882136.62598, -1728.9295713.54399,   0.000000.00000359.44028);
CreateDynamicObject(12572145.37427, -1745.4317613.75265,   0.000000.0000087.83355);
CreateDynamicObject(12572160.51099, -1759.6982413.66424,   0.000000.00000270.11578);
CreateDynamicObject(30912128.69019, -1743.1236613.16703,   0.000000.000000.60000);
CreateDynamicObject(88732089.44482, -1734.1362318.56446,   0.000000.000000.00000);
CreateDynamicObject(13442102.65967, -1830.0938713.16493,   0.000000.00000209.43044);
CreateDynamicObject(964, -2195.27954367.8767122.32190,   0.000000.00000180.00000);
CreateDynamicObject(193000.000000.000000.00000,   0.000000.000000.00000);
CreateDynamicObject(160232332.17993, -1664.0999813.69000,   0.000000.000000.00000);
CreateDynamicObject(160232353.51001, -1653.8100613.44000,   0.000000.00000180.00000);
CreateDynamicObject(160231322.73999, -1566.9300513.69000,   0.000000.00000, -180.00000);
CreateDynamicObject(160231596.72998, -1430.8800013.69000,   0.000000.00000, -90.00000);
CreateDynamicObject(160231297.43994, -1842.1600313.44000,   0.000000.00000, -90.00000);
CreateDynamicObject(160231297.43994, -1842.1600313.44000,   0.000000.00000, -90.00000); 
There is way more objects that i created but cant add all of them as it wont let me
Reply
#2

pawn Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0, Float:drawdistance = 0.0);
Because it is streamed you will not always be able to see the object. The correct usage of CreateDynamicObject is pasted above.

pawn Код:
Float:streamdistance = 200.0, Float:drawdistance = 0.0);
Reply
#3

So what do i have to do? put that at the top of the script?
Reply
#4

for each object i have to change the one you gave me? wow that will take long
Reply
#5

What you could do is use the replace-text function of Pawno. (It's the button left of the compile-button, the one with the A-->B.

- Select all the CreateDynamicObject-lines you want to edit.
- Press the replace-text button
- Check the 'selected text only' box
- At "search for" enter:
pawn Код:
);
- At "Replace with" enter:
pawn Код:
, -1, -1, -1, 200.0, 0.0);
Reply
#6

Quote:
Originally Posted by Schneider
Посмотреть сообщение
What you could do is use the replace-text function of Pawno. (It's the button left of the compile-button, the one with the A-->B.

- Select all the CreateDynamicObject-lines you want to edit.
- Press the replace-text button
- Check the 'selected text only' box
- At "search for" enter:
pawn Код:
);
- At "Replace with" enter:
pawn Код:
, -1, -1, -1, 200.0, 0.0);
Shortcut ctrl + h on Windows
Reply
#7

can i also use that for createobject ? or is it only for createdynamicobject?
Reply
#8

number of arguments does not match definition
Reply
#9

Quote:
Originally Posted by Schneider
Посмотреть сообщение
What you could do is use the replace-text function of Pawno. (It's the button left of the compile-button, the one with the A-->B.

- Select all the CreateDynamicObject-lines you want to edit.
- Press the replace-text button
- Check the 'selected text only' box
- At "search for" enter:
pawn Код:
);
- At "Replace with" enter:
pawn Код:
, -1, -1, -1, 200.0, 0.0);
Quote:
Originally Posted by Samieastwood
Посмотреть сообщение
can i also use that for createobject ? or is it only for createdynamicobject?
Only dynamic.

Quote:
Originally Posted by Samieastwood
Посмотреть сообщение
number of arguments does not match definition
We cant see your code..
Reply
#10

do i have to replace this
PHP код:
native CreateDynamicObject(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzworldid = -1interiorid = -1playerid = -1Float:streamdistance 200.0Float:drawdistance 0.0); 
with the current one in the streamer?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)