Have problems whit gate
#2

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (! strcmp ("/ sluiten", cmdtext))
{

	if (IsPlayerInRangeOfPoint (playerid, 7.0, 2354.3403320313, -650.77142333984, 127.85127258301))
{
		MoveObject (movingdoor1, 2354.3403320313, -650.77142333984, 127.85127258301, 1);
	SendClientMessage (playerid, 0xEF994300, "De poort is gesloten.");
		}
 		return 1;
	}

	if (! strcmp ("/ open", cmdtext))
	{
	if (IsPlayerInRangeOfPoint (playerid, 7.0, 2353.693359375, -650.77709960938, +127.85127258301))
 	{
 		MoveObject (movingdoor1 , 2353.693359375, -650.77709960938, 127.85127258301, 1);
	SendClientMessage (playerid, 0xEF994300, "De poort heeft geopend.");
		}
		return 1;
	}

	return 0;
}
Where did you learn to script because ) is way different than } and a , is way different than .
Reply


Messages In This Thread
Have problems whit gate - by justinkomnuga - 05.04.2010, 15:56
Re: Have problems whit gate - by lolumadd - 05.04.2010, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)