Gate Help
#3

Quote:
Originally Posted by HellSphinX
Посмотреть сообщение
pawn Код:
// top
new gate[2];

// where you create the gates
gate[0] = CreateObject(971, -1060.2998046875, -1338.19921875, 132.5, 0, 0, 347.99743652344);
gate[1] = CreateObject(971, -1046.7998046875, -1334.3994140625, 132.60000610352, 0, 0, 347.99743652344);

// under OnPlayerCommandText
if(strcmp("/opengate1", cmdtext, true) == 0)
{
    MoveObject(gate[0], -1060.2998046875, -1338.19921875, 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;
}
/*
    Continue, make a command to open the second gate just like I did above.
    But make sure to change gate[0] to gate[1] and also the coords.
*/
I dont know what you mean by decrease by 6 here is my second gate code does it look right? for gate 2

// 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"
Reply


Messages In This Thread
Gate Help - by coolmark1995 - 24.06.2012, 03:30
Re: Gate Help - by [KHK]Khalid - 24.06.2012, 03:57
Re: Gate Help - by coolmark1995 - 24.06.2012, 05:45
Re: Gate Help - by [KHK]Khalid - 24.06.2012, 05:58
Re: Gate Help - by coolmark1995 - 24.06.2012, 06:00
Re: Gate Help - by [KHK]Khalid - 24.06.2012, 06:15
Re: Gate Help - by coolmark1995 - 24.06.2012, 06:38
Re: Gate Help - by [KHK]Khalid - 24.06.2012, 06:41
Re: Gate Help - by coolmark1995 - 24.06.2012, 06:46
Re: Gate Help - by [KHK]Khalid - 24.06.2012, 06:51

Forum Jump:


Users browsing this thread: 2 Guest(s)