Textures - 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: Textures (
/showthread.php?tid=573871)
Textures -
Greaper - 11.05.2015
What's the problem here?:
++rep
Re: Textures -
Konstantinos - 11.05.2015
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.
Re: Textures -
Greaper - 11.05.2015
How? im Beginner
Re: Textures -
Konstantinos - 11.05.2015
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".
Re: Textures -
Greaper - 11.05.2015
Another Error
Re: Textures -
MasonPlay - 11.05.2015
Add new tmpobjid; in the beginning of the script. Update the streamer plugins.
Re: Textures -
Konstantinos - 11.05.2015
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.
Re: Textures -
Greaper - 11.05.2015
i already put
Re: Textures -
MOSensei - 13.05.2015
Instead of CreateDynamicObject change it into CreateDynamicObjectEx, then put the new tmpobjid; above your script..
Re: Textures -
Vince - 13.05.2015
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.