SA-MP Forums Archive
HELP, Gate won't open! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP, Gate won't open! (/showthread.php?tid=226396)



HELP, Gate won't open! - Gemini - 15.02.2011

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.


Re: HELP, Gate won't open! - iMonk3y - 15.02.2011

Add MoveStreamObject instead of MoveObject


Re: HELP, Gate won't open! - Gemini - 15.02.2011

Doesnt work.


Re: HELP, Gate won't open! - Riddick94 - 15.02.2011

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..


Re: HELP, Gate won't open! - arjunaryas - 15.02.2011

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


Re: HELP, Gate won't open! - Stigg - 15.02.2011

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...


Re: HELP, Gate won't open! - arjunaryas - 15.02.2011

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".


Re: HELP, Gate won't open! - Stigg - 15.02.2011

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...