Creating a gate
#3

Ok, what the hell is wrong with this?
Код:
//On top of the script
new impaund;

//OnGameModeInit
impaund = CreateObject(980, 1620.66, -1862.22, 15.33,   0.00, 0.00, 180.00);

//OnPlayerCommandText
        if(!strcmp(cmdtext, "/open", true))
		{
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 0, 0, 0))
		{
            MoveObject(impaund, 0, 0, 0, 3.0);
            return 1;
        }
    }
        else if(strcmp(cmdtext, "/close", true))
		{
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 0, 0, 0))
		{
            MoveObject(impaund, 1620.66, -1862.22, 15.33, 3.0);
            return 1;
        }
    }
  		return 1;
    }
    return 0;
}
If i type in game /open or close it saying Unknown command ... . What to do?
Reply


Messages In This Thread
Creating a gate - by Stm - 03.09.2012, 18:32
Re: Creating a gate - by detter - 03.09.2012, 18:41
Re: Creating a gate - by Stm - 03.09.2012, 19:02
Re: Creating a gate - by detter - 03.09.2012, 19:16
Re: Creating a gate - by Stm - 03.09.2012, 19:24
Re: Creating a gate - by rBcollo - 03.09.2012, 19:25
Re: Creating a gate - by Stm - 03.09.2012, 19:56
Re: Creating a gate - by detter - 03.09.2012, 19:58
Re: Creating a gate - by Stm - 03.09.2012, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)