SA-MP Forums Archive
Dynamic object problem - 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: Dynamic object problem (/showthread.php?tid=598377)



Dynamic object problem - xXxThunderxXx - 11.01.2016

please help me with this,
this is line no 113
Код HTML:
CreateDynamicObject(964, x, y, z - 0.0440, 0.0, 0.0, 0.0, .streamdistance = 1000.0, .drawdistance = 1000);
Код:
SS/Core/World/WeaponsCache.pwn(113) : error 017: undefined symbol "drawdistance"
SS/Core/World/WeaponsCache.pwn(113) : warning 215: expression has no effect
SS/Core/World/WeaponsCache.pwn(113) : error 001: expected token: ";", but found ")"
SS/Core/World/WeaponsCache.pwn(113) : error 029: invalid expression, assumed zero
SS/Core/World/WeaponsCache.pwn(113) : fatal error 107: too many error messages on one line



Re: Dynamic object problem - AbyssMorgan - 11.01.2016

PHP код:
CreateDynamicObject(964xy0.04400.00.00.01000.01000); 



Re: Dynamic object problem - Alex_T - 11.01.2016

Change that line to this line.

Код:
CreateDynamicObject(964, x, y, z - 0.0440, 0.0, 0.0, 0.0, -1, -1, -1, 1000.0, 1000.0);
The reason you write it like this is because the way it is defined is like this

Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD);
In order to follow the way it is defined you write it like this.