CreateSpeedCamera and Offsets
#1

Good Morning,

I'm going to get to straight to the point because i'm tired and rambling just isn't my thing at the moment.

I have this function:
pawn Код:
stock CreateSpeedCamera(Float:__x, Float:__y, Float:__z)
{
    /*2.0187*/
    CreateDynamicObject(1214,__x,__y,__z,0.00000000,0.00000000,0.00000000); //object(bollard) (1)
    CreateDynamicObject(1214,__x,__y,__z+1.05,0.00000000,0.00000000,0.00000000); //object(bollard) (2)
    CreateDynamicObject(1616,__x,__y,__z+2.5669,0.00000000,0.00000000,0.00000000); //object(nt_securecam1_01) (1)
    CreateDynamicObject(1616,__x,__y,__z+2.5669,0.00000000,0.00000000,194.00000000); //object(nt_securecam1_01) (2)
    CreateDynamicObject(1616,__x,__y,__z+2.5669,0.00000000,0.00000000,273.99658203); //object(nt_securecam1_01) (3)
    CreateDynamicObject(1616,__x,__y,__z+2.5669,0.00000000,0.00000000,273.99658203); //object(nt_securecam1_01) (4)
    //CreateDynamicMapIcon(__x, __y, __z, 38, 0);
}
It should create a speed camera at the given co-ordinates. The object do not show, at all. However the map icon does (I added it in simply to test the coordinates were right)

Does anyone have any idea?

Also, here is the original conversion of the objects:
pawn Код:
CreateDynamicObject(1214,0.00000000,0.00000000,2.01874685,0.00000000,0.00000000,0.00000000); //object(bollard) (1)
CreateDynamicObject(1214,0.00000000,0.00000000,3.06875086,0.00000000,0.00000000,0.00000000); //object(bollard) (2)
CreateDynamicObject(1616,0.00000000,0.00000000,4.58562708,0.00000000,0.00000000,0.00000000); //object(nt_securecam1_01) (1)
CreateDynamicObject(1616,0.00000000,0.00000000,4.58562708,0.00000000,0.00000000,194.00000000); //object(nt_securecam1_01) (2)
CreateDynamicObject(1616,0.00000000,0.00000000,4.58562708,0.00000000,0.00000000,273.99658203); //object(nt_securecam1_01) (3)
CreateDynamicObject(1616,0.00000000,0.00000000,4.58562708,0.00000000,0.00000000,273.99658203); //object(nt_securecam1_01) (4)
Thanks,
Ash
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)