SA-MP Forums Archive
Why my Object not Moving ? Plz Anyone ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why my Object not Moving ? Plz Anyone ? (/showthread.php?tid=543654)



Why my Object not Moving ? Plz Anyone ? - Adarsh007 - 28.10.2014

public OnPlayerCommandText(playerid, cmdtext[])
dcmd_liftup(playerid,params[])
{
#pragma unused params
MoveObject(evelift, 1275.4000000, -803.7000100, 88.8000000, 99.00);
SendClientMessage(playerid,COLOR_VIOLETBLUE,">> LIFT ACTIVATED<< ");
return 1;
}

dcmd_liftdown(playerid,params[])
{
#pragma unused params
MoveObject(evelift, 1275.4000000,-803.7000100, 1008.8000000, 95.00);
SendClientMessage(playerid,COLOR_VIOLETBLUE,">>LIF T ACTIVATED !!!<< ");
return 1;
}

Whats Wrong ? Why my Object not Moving..........and I also Defined the Command
dcmd(liftup,2,cmdtext);
dcmd(liftdown,4,cmdtext); = Under OnPlayerCommandText

THERE ARE NO ERRORS / WARNINGS IN THE SCRIPT | I WANT TO ONLY USE DCMD ELSE MY GM CMDS WILL NOT WORK


Re: Why my Object not Moving ? Plz Anyone ? - Quickie - 28.10.2014

no offense dude
but that was a bit harsh
pawn Код:
MoveObject(evelift, 1275.4000000, -803.7000100, 88.8000000, 99.00);// 99 speed ,,thats a thousand nanosec



Re: Why my Object not Moving ? Plz Anyone ? - Threshold - 28.10.2014

pawn Код:
dcmd(liftup,6,cmdtext);
dcmd(liftdown,8,cmdtext);
The numbers in the middle represent the length of the command. 'liftup' is '6' characters long. 'liftdown' is '8' characters long.

I also recommend changing to ZCMD and changing the speed of that object to something smaller. Otherwise the object will just fly up at great speeds and it won't look very 'realistic'. I'm also not sure if that Z coordinate is meant to be over 1000?