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
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