CreateDynamicObjectEx - worldids -
ranme15 - 16.05.2015
Hey,
I wannna create an object for 60 worlds only (1-60), I tried using CreateDynamicObjectEx but it doesn't work.
The function:
Код:
CreateDynamicObjectEx(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:drawdistance = 0.0, Float:streamdistance = 200.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
I tried replacing the worlds[] = {-1} in:
Код:
new worlds[] = {1,2,3,4,5}; .., worlds
Both gives me an error.
Help?
Re: CreateDynamicObjectEx - worldids -
Jefff - 16.05.2015
create array
pawn Код:
new my_worlds[61] = {1,2,3, ...};
before CreateDynamicObjectEx
and replace
to
Re: CreateDynamicObjectEx - worldids -
ranme15 - 16.05.2015
Quote:
Originally Posted by Jefff
create array
pawn Код:
new my_worlds[61] = {1,2,3, ...};
before CreateDynamicObjectEx
and replace
to
|
Did you even read?
I already tried that, it gives me an error:
Код:
error 035: argument type mismatch (argument 11)
Re: CreateDynamicObjectEx - worldids -
Jefff - 17.05.2015
Nope it doesn't if you do it good, show your line with CreateDynamicObjectEx
Re: CreateDynamicObjectEx - worldids -
ranme15 - 17.05.2015
Quote:
Originally Posted by Jefff
Nope it doesn't if you do it good, show your line with CreateDynamicObjectEx
|
Код:
new worlds[5] = {0,1,2,3,4};
ObjectInfo[i][ObjID] = CreateDynamicObjectEx(ObjectInfo[i][model], ObjectInfo[i][posX], ObjectInfo[i][posY], ObjectInfo[i][posZ], ObjectInfo[i][rotX], ObjectInfo[i][rotY], ObjectInfo[i][rotZ], 300.0, 200.0, worlds, -1, ObjectInfo[i][interior], -1);
Re: CreateDynamicObjectEx - worldids -
Jefff - 17.05.2015
Argument 11 is interiors[] you need set -1 in {}
+ you sets ObjectInfo[i][interior] as players[]
Re: CreateDynamicObjectEx - worldids -
ranme15 - 17.05.2015
Quote:
Originally Posted by Jefff
Argument 11 is interiors[] you need set -1 in {}
+ you sets ObjectInfo[i][interior] as players[]
|
Much thanks.