Move Object question
#1

Код:
#else


main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif
new gate;

public OnGameModeInit()
{
	//Moving Gate
	gate = CreateObject(985,1545.1000000,-1627.6000000,14.1000000,0.0000000,0.0000000,90.0000000);
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{

	if(strcmp(cmdtext,"/openthegate",true)== 0)
	{
	MoveObject(gate,1545.1000000,-1620.1000000,14.1000000,3;
	return 1;
	}
	if(strcmp(cmdtext,"/closethegate",true)== 0)
	{
	MoveObject(gate,1545.1000000,-1627.6000000,14.1000000,3;
	return 1;
	}
}
And i have this error... ?
PHP код:
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(302) : error 001expected token","but found ";"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(307) : error 001expected token","but found ";"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(310) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Errors

Reply


Messages In This Thread
Move Object question - by Bulgaria - 30.03.2016, 22:05
Re: Move Object question - by introzen - 30.03.2016, 22:11
Re: Move Object question - by Bulgaria - 30.03.2016, 22:18
Re: Move Object question - by Bulgaria - 30.03.2016, 22:20
Re: Move Object question - by Bulgaria - 30.03.2016, 22:37
Re: Move Object question - by introzen - 30.03.2016, 22:55

Forum Jump:


Users browsing this thread: 2 Guest(s)