MoveObject not working (zcmd)
#1

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

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

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

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.
Reply
#5

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

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)