HELP, Gate won't open!
#1

I made a gate/door that should open with the cmd /open3668. And I also add the SendClientMessage "door opened!"
Now, whenever I go to that specific door, and write /open3668, the message "door opened!" appears, but the door wont seem to move. Here is the pastebin:
http://pastebin.com/0sKpdCTU

Just ignore that I named it "Admindoor".

BTW, I do have 1 working movable gate in my server script, that works perfectly.
I dont understand why this one doesn't.

Thanks in advantage.
Reply
#2

Add MoveStreamObject instead of MoveObject
Reply
#3

Doesnt work.
Reply
#4

pawn Код:
#include <a_samp>
#include <MidoStream>

new Admindoor;

#define COLOR_WHITE         0xFFFFFFFF

public OnFilterScriptInit()
{
    Admindoor = CreateStreamObject(10184, 2180.33203125, 1678.49316406, 8.61737061, 90.00000000, 0.00000000, 0.00000000, 250);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/open3368", cmdtext, true) == 0)
    {
        MoveStreamObject(Admindoor, 2180.33203125,1683.09313965,8.61737061, 5.0)
        SendClientMessage(playerid,COLOR_WHITE,"Door opened!");
        return 1;
    }
    return 0;
}
Try this..
Reply
#5

Error in your code
pawn Код:
MoveObject( Admindoor, 2180.33203125,1683.09313965,8.61737061, 5);
correct code
pawn Код:
MoveObject(Admindoor, 2180.33203125,1683.09313965,8.61737061, 5);
find the difference

I have tested it and its working right now
Reply
#6

Quote:
Originally Posted by arjunaryas
Посмотреть сообщение
Error in your code
pawn Код:
MoveObject( Admindoor, 2180.33203125,1683.09313965,8.61737061, 5);
correct code
pawn Код:
MoveObject(Admindoor, 2180.33203125,1683.09313965,8.61737061, 5);
find the difference

I have tested it and its working right now
What are you smoking ? Lmao.

Peace...
Reply
#7

Quote:
Originally Posted by Stigg
Посмотреть сообщение
What are you smoking ? Lmao.

Peace...
Can't you see the differnce between the above codes. I installed his filterscripted and tested it but I found that the door was not working because of a little mistake. He only needs to delete the space between the "(" "admindoor".
Reply
#8

Quote:
Originally Posted by arjunaryas
Посмотреть сообщение
Can't you see the differnce between the above codes. I installed his filterscripted and tested it but I found that the door was not working because of a little mistake. He only needs to delete the space between the "(" "admindoor".
Your code:
MoveObject(Admindoor, 2180.33203125,1683.09313965,8.61737061, 5.0);

Correct code:
MoveStreamObject(Admindoor, 2180.33203125,1683.09313965,8.61737061, 5.0)

Did you read the whople thread ?

Peace...
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)