Why my Object not Moving ? Plz Anyone ?
#1

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
Reply
#2

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
Reply
#3

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)