Dynamic object problem
#1

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
Reply
#2

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)