31.03.2012, 06:26
Hey, How can I make a object move? For example a gate. I want it to open whenever a army member comes near and then close again after like 4 secs
C:\Users\Gandhi\Desktop\CnRBдst\gamemodes\SFCRRPG.pwn(16948) : error 021: symbol already defined: "MoveObject"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
if (strcmp("/gateopen", cmdtext, true, 10) == 0)
{
MoveObject(gate, x, y, z, speed);
return 1;
}
if (strcmp("/gateclose", cmdtext, true, 10) == 0)
{
MoveObject(gate, x, y, z, speed);
return 1;
}
new gate;
gate = //Your createobject code
Originally Posted by Jack.7331
Make sure to change the command as you wish, and that you have defined what the gate is with.
pawn Код:
pawn Код:
|