[HELP] Plz. I Need A Help ..
#1

new Gate;
------------------------------------------
Gate = CreateDynamicObject(7657,-2028.13928223,-151.11863708,36.13164520,0.00000000,0.00000000,178 .00000000); //object(plasticsgate1) (1)
------------------------------------------
if (!strcmp("/openadmingate", cmdtext, true))
{
MoveObject(Gate, -2028.13928223, -151.11863708, 26.13164520, 2.0);
SendClientMessage(playerid, GREEN, "**You Have Opened The Admin House GATE!**");
return 1;
}
-----------------------------------------
I Compile There's No Errors ... No Warns .. BUT ..
When i go to the game ... and type the Command .. The GATE Don't MOVE!! ...
So anyone plz. can help me on this problem ?
-----------------------------------------
Thanks
Stunt_Guy_Drift_Guy
Reply
#2

you are creating obj with createdynamicobject, so on object moving you need to use MoveDynamicObject
Reply
#3

You need to use
pawn Код:
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);
instead MoveObject since you use streamer.
Reply
#4

new Gate;
----------
Gate = MoveDynamicObject(7657,-2028.13928223,-151.11863708,36.13164520,5.0); //object(plasticsgate1) (1)
----------
if (!strcmp("/openadmingate", cmdtext, true))
{
MoveObject(Gate,-2028.13928223,-151.11863708,26.13164520,5.0);
SendClientMessage(playerid, GREEN, "**You Have Opened The Admin House GATE!**");
return 1;
}
-----------------
but it still don't work ..
Reply
#5

1st:

gate = CreateDynamicObject

Then:

MoveDynamicObject

Peace...
Reply
#6

No. The gate does not = MoveDynamicObject. The CMD moves the dynamic object. So it should be this:

Код:
new Gate;
------------------------------------------
Gate = CreateDynamicObject(7657,-2028.13928223,-151.11863708,36.13164520,0.00000000,0.00000000,178 .00000000); //object(plasticsgate1) (1)
------------------------------------------
if (!strcmp("/openadmingate", cmdtext, true))
{
MoveDynamicObject(Gate, -2028.13928223, -151.11863708, 26.13164520, 2.0);
SendClientMessage(playerid, GREEN, "**You Have Opened The Admin House GATE!**");
return 1;
}
Reply
#7

Quote:
Originally Posted by Zack9764
Посмотреть сообщение
No. The gate does not = MoveDynamicObject. The CMD moves the dynamic object. So it should be this:

Код:
new Gate;
------------------------------------------
Gate = CreateDynamicObject(7657,-2028.13928223,-151.11863708,36.13164520,0.00000000,0.00000000,178 .00000000); //object(plasticsgate1) (1)
------------------------------------------
if (!strcmp("/openadmingate", cmdtext, true))
{
MoveDynamicObject(Gate, -2028.13928223, -151.11863708, 26.13164520, 2.0);
SendClientMessage(playerid, GREEN, "**You Have Opened The Admin House GATE!**");
return 1;
}
It Works .. But Something Happen .. When i type /openadmingate ...
I See Like 2 Gates .. The First Moved But The Second .. Still ... So??
Reply
#8

No Comments ? No Help ? Please I Wanna Make My Admin House Gate ... And If Someone Really Help Me .. I'm Going To Tell Him Thank You Very Much ! So Please ....
Reply
#9

Quote:
Originally Posted by Stunt_Guy
Посмотреть сообщение
It Works .. But Something Happen .. When i type /openadmingate ...
I See Like 2 Gates .. The First Moved But The Second .. Still ... So??
Quote:
Originally Posted by Stunt_Guy
Посмотреть сообщение
No Comments ? No Help ? Please I Wanna Make My Admin House Gate ... And If Someone Really Help Me .. I'm Going To Tell Him Thank You Very Much ! So Please ....
You fucking kidding me......REMOVE THE 2ND GATE !!!!!
Reply
#10

It's Just Only One Object .. But This Really Happen ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)