24.06.2012, 05:45
Quote:
pawn Код:
|
// top
new gate[1];
// where you create the gates
gate[1] = CreateObject(971, -1046.7998046875, -1334.3994140625, 132.60000610352, 0, 0, 347.99743652344);
// under OnPlayerCommandText
if(strcmp("/o1", cmdtext, true) == 0)
{
MoveObject(gate[1], -1046.7998046875, -1334.3994140625, 126.5, 7.5); // just decreased the 132.5 (Z value) by -6 (Change that as you like)
/*
Decrease the Z coordinate to make it move down.
*/
return 1;
}
I seem to get error
C:\Users\Stephen\Downloads\heli.pwn(55) : error 010: invalid function or declaration
C:\Users\Stephen\Downloads\heli.pwn(61) : error 010: invalid function or declaration
C:\Users\Stephen\Downloads\heli.pwn(67) : error 010: invalid function or declaration
C:\Users\Stephen\Downloads\heli.pwn(74) : error 021: symbol already defined: "gate"
C:\Users\Stephen\Downloads\heli.pwn(77) : error 010: invalid function or declaration
C:\Users\Stephen\Downloads\heli.pwn(80) : error 010: invalid function or declaration
C:\Users\Stephen\Downloads\heli.pwn(86) : error 010: invalid function or declaration
C:\Users\Stephen\Downloads\heli.pwn(276) : warning 203: symbol is never used: "gate"