error 008: must be a constant expression; assumed zero
#1

pawn Код:
if (!sscanf(string, "p<\">'object''model='d'interior='d'dimension='d'posX='f'posY='f'posZ='f'rotX='f'rotY='f'rotZ='f", modelid, interior, world, x, y, z, rx, ry, rz))
        {
            n++;
            //modelid x y z rx ry rz interior world
            CreateDynamicObjectEx(modelid, x, y, z, rx, ry, rz, 500, 500, {world}, {interior});//error 008: must be a constant expression; assumed zero
Reply
#2

Up...
Reply
#3

That is not the format, it's not like format or mysql!
This is wrong:
pawn Код:
if(sscanf(string, "rot = %d", rot))..
This is right.
pawn Код:
if(sscanf((string, "d", rot))
I hope you can fix it now!
Reply
#4

pawn Код:
new RandomWorld[] = {
};
Did you use something something like that?
Reply
#5

No, there's nothing wrong there. I've got the correct x/y/z coords, world, and interior id. But the problem is here
CreateDynamicObjectEx(modelid, x, y, z, rx, ry, rz, 500, 500, {world}, {interior});

EDIT: @ above: no
Reply
#6

As I asked did you use some randomWQold and randomInteriror?

then the problem is in []
Reply
#7

How about trying to substitute {world} and {interior} with -1? Just sayin!
Reply
#8

I want the objects to be in different world.
Reply
#9

Then specify the world. Maybe something like GetPlayerInterior(playerid).
Reply
#10

The object's world id is not same.
Object1 = World 1
Object2 = World23
... etc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)