SA-MP Forums Archive
[Ajuda] error 030: compound statement not closed at the end of file (started at line 40) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] error 030: compound statement not closed at the end of file (started at line 40) (/showthread.php?tid=645904)



error 030: compound statement not closed at the end of file (started at line 40) - MituhBR - 06.12.2017

Bom, sou novato em pawno e quando estava compilando meu primeiro gm deu o erro "error 030: compound statement not closed at the end of file (started at line 40)"

Code do comeзo do codigo atй o fim

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{

// TELE /academials

	if(strcmp(cmdtext,"/academials",true)==0)
	{
	SetPlayerPos(playerid,772.111999,-3.898649,1000.728820);
	SetPlayerInterior(playerid,5);
	GameTextForPlayer(playerid,"BIRL",4000,6);
	return 1;
	}

// TELE /academialv



	if(strcmp(cmdtext,"/academialv",true)==0)
	{
	SetPlayerPos(playerid,773.579956,-77.096694,1000.655029);
	SetPlayerInterior(playerid,7);
	GameTextForPlayer(playerid,"BIRL",4000,6);
	return 1;
	}

// TELE /academiasf

	if(strcmp(cmdtext,"/academiasf",true)==0)
	{
	SetPlayerPos(playerid,774.213989,-48.924297,1000.585937);
	SetPlayerInterior(playerid,6);
	GameTextForPlayer(playerid,"BIRL",4000,6);
	return 1;
}



Re: error 030: compound statement not closed at the end of file (started at line 40) - C4rtm4n - 06.12.2017

Consegue ver o erro ?

PHP код:
 if(strcmp(cmdtext,"/academiasf",true)==0) { SetPlayerPos(playerid,774.213989,-48.924297,1000.585937); SetPlayerInterior(playerid,6); GameTextForPlayer(playerid,"BIRL",4000,6); return 1
Compara esse cуdigo com os outros e vc vai saber onde errou.


Re: error 030: compound statement not closed at the end of file (started at line 40) - iLordGG - 06.12.2017

// TELE /academiasf

if(strcmp(cmdtext,"/academiasf",true)==0)
{
SetPlayerPos(playerid,774.213989,-48.924297,1000.585937);
SetPlayerInterior(playerid,6);
GameTextForPlayer(playerid,"BIRL",4000,6);
return 1;
} // Coloca isso, faltou uma chave


Re: error 030: compound statement not closed at the end of file (started at line 40) - MituhBR - 06.12.2017

Vlw ai, consegui arrumar sу deu uma warning "warning 209: function "OnPlayerCommandText" should return a value"
mas ta d boa como jб disse, sou novato em pawno, obrigado pela ajuda

+rep

EDIT:

Vlw c4rtm4n por me mostrar o erro


Re: error 030: compound statement not closed at the end of file (started at line 40) - Marllun - 06.12.2017

Para nгo ter mais problemas desse tipo. Use esse site ele fecha os cуdigo do jeito certo e indentar.
//By:IpsBruno
http://tabulador.medianewsonline.com/


Re: error 030: compound statement not closed at the end of file (started at line 40) - willttoonn - 06.12.2017

Quote:
Originally Posted by MituhBR
Посмотреть сообщение
Vlw ai, consegui arrumar sу deu uma warning "warning 209: function "OnPlayerCommandText" should return a value"
mas ta d boa como jб disse, sou novato em pawno, obrigado pela ajuda

+rep

EDIT:

Vlw c4rtm4n por me mostrar o erro
Declare um
PHP код:
return 1
no final do OnPlayerCommandText para sair essa warning.


Re: error 030: compound statement not closed at the end of file (started at line 40) - MituhBR - 07.12.2017

Vlw ai man +rep ajudou dms