Textures
#1

What's the problem here?:



++rep
Reply
#2

The mistake is in CreateDynamicObject function. It is expecting worldid which is integer, but you set to 300.0

Whether it's streamdistance or drawdistance, just set it as you do with interiorid.
Reply
#3

How? im Beginner
Reply
#4

pawn Код:
tmpobjid = CreateDynamicObject(19375,-2023.961,1010.056,1417.401,0.000,90.000,0.000, .interiorid = 40, .drawdistance = 300.0);
Remove the "300.0" and add it like the example above. In case you wanted to change stream distance instead draw distance, replace "drawdistance" with "streamdistance".
Reply
#5

Another Error

Reply
#6

Add new tmpobjid; in the beginning of the script. Update the streamer plugins.
Reply
#7

You have "0.000" before ".interiorid = 40" when you shouldn't have that - take a look at my example again.

Quote:
Originally Posted by MasonPlay
Посмотреть сообщение
Add new tmpobjid; in the beginning of the script. Update the streamer plugins.
The problem is not the variable and neither the version of the plugin. The argument he was using were wrong.
Reply
#8

i already put
Reply
#9

Instead of CreateDynamicObject change it into CreateDynamicObjectEx, then put the new tmpobjid; above your script..
Reply
#10

Quote:
Originally Posted by MasonPlay
Посмотреть сообщение
Add new tmpobjid; in the beginning of the script.
Quote:
Originally Posted by MOSensei
Посмотреть сообщение
then put the new tmpobjid; above your script..
NO! The sole purpose of that variable is to provide a temporary handle (hence 'tmp') to retexture the object. Global variables are evil and should be avoided whenever possible.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)