SA-MP Forums Archive
help. - 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: help. (/showthread.php?tid=492006)



help. - eblood1 - 02.02.2014

i can set a distance on this ? for example like this i get an error
CreateDynamicObject(19463, 2905.73950, 1051.81165, 16.46160, 0.00000, -90.00000, 359.71826, MenuVW, -1, -1, -1, 1000.0);?


Re: help. - TheFlyer - 02.02.2014

Quote:
Originally Posted by eblood1
Посмотреть сообщение
i can set a distance on this ? for example like this i get an error
CreateDynamicObject(19463, 2905.73950, 1051.81165, 16.46160, 0.00000, -90.00000, 359.71826, MenuVW, -1, -1, -1, 1000.0);?
this is wrong:
pawn Код:
CreateDynamicObject(19463, 2905.73950, 1051.81165, 16.46160,   0.00000, -90.00000, 359.71826, MenuVW, -1, -1, -1, 1000.0);
Replace that for this:
pawn Код:
CreateDynamicObject(19463, 2905.73950, 1051.81165, 16.46160,   0.00000, -90.00000, 359.71826, 1000.0);
its like this: CreateDynamicObject(objectid, X, Y, Z, rX, rY, rZ, DrawDistance);


Re: help. - eblood1 - 02.02.2014

Ooo i see, but i wanted to Set a world on it :/


Re: help. - TheFlyer - 02.02.2014

CreateDynamicObject(modelid, x, y, z, rx, ry, rz, WORLDID = -1, .streamdistance = 100.0);

so for you code it is:
CreateDynamicObject(19463, 2905.73950, 1051.81165, 16.46160, 0.00000, -90.00000, 359.71826, YOUR_WORLD, .streamdistance=1000.0);


Re: help. - eblood1 - 02.02.2014

Quote:
Originally Posted by TheFlyer
Посмотреть сообщение
CreateDynamicObject(modelid, x, y, z, rx, ry, rz, WORLDID = -1, .streamdistance = 100.0);

so for you code it is:
CreateDynamicObject(19463, 2905.73950, 1051.81165, 16.46160, 0.00000, -90.00000, 359.71826, YOUR_WORLD, .streamdistance=1000.0);
soo like this?
Код:
CreateDynamicObject(19463, 2905.73950, 1051.81165, 16.46160, 0.00000, -90.00000, 359.71826, MenuVW, 1000.0);



Re: help. - TheFlyer - 02.02.2014

put .streamdistance=1000.0

like this:
Код:
CreateDynamicObject(19463, 2905.73950, 1051.81165, 16.46160, 0.00000, -90.00000, 359.71826, MenuVW, .streamdistance=1000.0);



Re: help. - eblood1 - 02.02.2014

Quote:
Originally Posted by TheFlyer
Посмотреть сообщение
put .streamdistance=1000.0

like this:
Код:
CreateDynamicObject(19463, 2905.73950, 1051.81165, 16.46160, 0.00000, -90.00000, 359.71826, MenuVW, .streamdistance=1000.0);
nope doesn't work :/ the object still shows from very close


Re: help. - TheFlyer - 02.02.2014

increase the drawdistance then :P
try this then:
Код:
CreateDynamicObject(19463, 2905.73950, 1051.81165, 16.46160, 0.00000, -90.00000, 359.71826, MenuVW, .streamdistance=10000.0);



Re: help. - eblood1 - 02.02.2014

Quote:
Originally Posted by TheFlyer
Посмотреть сообщение
increase the drawdistance then :P
try this then:
Код:
CreateDynamicObject(19463, 2905.73950, 1051.81165, 16.46160, 0.00000, -90.00000, 359.71826, MenuVW, .streamdistance=10000.0);
nope


Re: help. - TheFlyer - 02.02.2014

Do you have #include <streamer> and streamer plugin?