SA-MP Forums Archive
CreateDynamicObjectEx - hide only from world 0? - 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: CreateDynamicObjectEx - hide only from world 0? (/showthread.php?tid=633183)



CreateDynamicObjectEx - hide only from world 0? - denNorske - 26.04.2017

Heya guys!

I want to make my objects only appear in worlds 1-3000.
I know you can define a long list like this:

Код:
new array[3000] = {1,2,3,4,5,6,7,8.....,3000};
But that's a bit uh.. time consuming.

So I tried:

PHP код:
for(new i;i<3000;i++)
{
    array[
i] = 1+i//in order not to get world 0 here

But when I add it like this:
PHP код:
CreateDynamicObjectEx(2395,480.5,-1829.79,53.50,270.0,0.58,0.8,array); 
it gives me: error 035: argument type mismatch (argument 8)


So, what am I doing wrong? Would appreciate some guidance towards the correct method here.


Re: CreateDynamicObjectEx - hide only from world 0? - jlalt - 26.04.2017

R.e.m.o.v.e.d


Re: CreateDynamicObjectEx - hide only from world 0? - denNorske - 26.04.2017

You want me to have 1040+ objects made 3k times? Well, that's not a really good solution to it.

(Considering I understood it correctly.)
I don't know if the Ex function does the same as you suggested above?


Re: CreateDynamicObjectEx - hide only from world 0? - Jefff - 26.04.2017

You should see how CreateDynamicObjectEx looks in include because argument 8 is not array


Re: CreateDynamicObjectEx - hide only from world 0? - denNorske - 26.04.2017

Oh that was the stream distance. My bad-

Fixed