what is wrong?
#1

i need help i have a command for open gates but i compiled it it was good no errors
but i go in to the server and i goto the gate i type /opengate 1 it says GATE OPENED!
but it isnt open
plzz any one help me
here is the code:
pawn Код:
i have added this on top:

new gate1;

this at create objects:

gate1 = CreateObject(980, 1385.557617, -2688.828857, 272.734619, 0.0000, 0.0000, 270.0000); // coords of closed gate

this at OnPlayerCommandText

if (strcmp("/opengate1", cmdtext, true) == 0)
    {
        MoveObject(gate1, 980, 1385.557617, -2688.828857, 5); //5 is the speed of opening and the coords when the gate is opened
        SendClientMessage(playerid, 0x00F600AA, "GATE OPENED !");
        return 1;
    }

plzzz anyone help me thx alot...
Reply


Messages In This Thread
what is wrong? - by luckie12 - 30.04.2009, 13:21
Re: what is wrong? - by luckie12 - 30.04.2009, 13:28
Re: what is wrong? - by luckie12 - 30.04.2009, 13:39
Re: what is wrong? - by Andom - 30.04.2009, 13:56
Re: what is wrong? - by luckie12 - 30.04.2009, 14:03
Re: what is wrong? - by Chpp - 30.04.2009, 14:42

Forum Jump:


Users browsing this thread: 1 Guest(s)