SA-MP Forums Archive
MoveObject not working (zcmd) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: MoveObject not working (zcmd) (/showthread.php?tid=151853)



MoveObject not working (zcmd) - [NTX]MikeQ - 01.06.2010

Hey everyone i have added a closemain and openmain cmd to my server but it doesnt work im using zcmd other cmds work except MoveObject

Screenshot:


Re: MoveObject not working (zcmd) - ViruZZzZ_ChiLLL - 01.06.2010

Next time use :
[ pawn ]
// code here
[ /pawn ]

Okay?

and yeah you must do it like this :
pawn Code:
new Object;

public OnGameModeInit()
{
 Object = CreateObject(....)
 return 1;
}

CMD:openmain(playerid, params[])
{
 MoveObject(Object, ....);
 return 1;
}



Re: MoveObject not working (zcmd) - [NTX]MikeQ - 01.06.2010

ok tybut where do i put the new object thing i mean where under


Re: MoveObject not working (zcmd) - ViruZZzZ_ChiLLL - 01.06.2010

Quote:
Originally Posted by [SAK
Karlis ]
ok tybut where do i put the new object thing i mean where under
On top of your script.


Re: MoveObject not working (zcmd) - [NTX]MikeQ - 01.06.2010

ty viruzzz now its so easy to script i remember a week ago i didnt get a shit


Re: MoveObject not working (zcmd) - Mike_Peterson - 01.06.2010

You can also name the objects like: if you want to name a gate u simple do this:

pawn Code:
Gate = CreateObject(986, -000.000000, 000.000000, 000.000000, 0.0000, 0.0000, 000.0000);
Thats quite usefull if you got lots of same ID's like fences and you want to move 1 down. then ill suggest using this "naming"

To move it you have to do this:
pawn Code:
MoveObject(Gate,-000.000000, 000.000000, 000.000000,0);