door help
#1

i'm having trouble, i'm trying to make a command that can open my PD door, but every time i do the command it won't open. can you guys help me?

here are the commands
Код:
	if(strcmp(cmd, "/opensddoor", true) == 0)
	{
		MoveObject(apsd, 496.0321, 1763.5408, 1179.0130, 3);
		return 1;
	}

	if(strcmp(cmd, "opensddoor", true) == 0)
	{
		MoveObject(apsd, 496.0321, 1763.5408, 1181.4729, 3);
		return 1;
	}
Reply
#2

Alright, The reason for this is because you have the two commands as the same, it will not open. I also see that you forgot to put "/" on the 'closeddoor'. It should be "/closeddoor" not just "closeddoor" the Separate the CMDS. Use this below.

pawn Код:
if(strcmp(cmd, "/opensddoor", true) == 0)
    {
        MoveObject(apsd, 496.0321, 1763.5408, 1179.0130, 3);
        return 1;
    }

    if(strcmp(cmd, "/closeddoor", true) == 0)
    {
        MoveObject(apsd, 496.0321, 1763.5408, 1181.4729, 3);
        return 1;
    }
I hope this helped! Good Luck
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)