SA-MP Forums Archive
[Ajuda] Erro ao Compile - 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] Erro ao Compile (/showthread.php?tid=340583)



[Ajuda] Erro ao Compile - marcoslucasj - 07.05.2012

Quando eu vou compile da esse erro chato...

PHP код:
C:\Users\Twulin\Downloads\Game Mode\Casa-Admin.pwn(129) : error 030compound statement not closed at the end of file (started at line 124)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

No final da minha FS ta assim..
PHP код:
if (strcmp("/irCasa"cmdtexttrue10) == 0)
    {
if(
IsPlayerAdmin(playerid)){
    
SetPlayerInterior(playerid,0);
    
SetPlayerPos(playerid,270.0256,-1242.1190,73.5906);//Posiзгo aonde o player serб teleportado
    
SendClientMessage(playerid,0xFFFFFFAA"[CASA] Bem vindo a casa");//Mesagem que irб aparecer para o Player no chat
    
GameTextForPlayer(playerid,"~g~Bem vindo a casa"10001);//Mensagem que irб aparecer para o player na tela 



Re: [Ajuda] Erro ao Compile - WLSF - 07.05.2012

Tб faltando аs chaves para fechar o code nгo..?


Re: [Ajuda] Erro ao Compile - sanalex - 07.05.2012

pawn Код:
if (strcmp("/irCasa", cmdtext, true, 10) == 0)
    {
if(IsPlayerAdmin(playerid)){
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,270.0256,-1242.1190,73.5906);//Posiзгo aonde o player serб teleportado
    SendClientMessage(playerid,0xFFFFFFAA, "[CASA] Bem vindo a casa");//Mesagem que irб aparecer para o Player no chat
    GameTextForPlayer(playerid,"~g~Bem vindo a casa", 1000, 1);//Mensagem que irб aparecer para o player na tela  
    }
}



Re: [Ajuda] Erro ao Compile - WLSF - 07.05.2012

Quote:
Originally Posted by sanalex
Посмотреть сообщение
pawn Код:
if (strcmp("/irCasa", cmdtext, true, 10) == 0)
    {
if(IsPlayerAdmin(playerid)){
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,270.0256,-1242.1190,73.5906);//Posiзгo aonde o player serб teleportado
    SendClientMessage(playerid,0xFFFFFFAA, "[CASA] Bem vindo a casa");//Mesagem que irб aparecer para o Player no chat
    GameTextForPlayer(playerid,"~g~Bem vindo a casa", 1000, 1);//Mensagem que irб aparecer para o player na tela  
 }
Ainda tб faltando uma chave em...


Re: [Ajuda] Erro ao Compile - sanalex - 07.05.2012

Agora nгo


Re: [Ajuda] Erro ao Compile - marcoslucasj - 07.05.2012

Quote:
Originally Posted by sanalex
Посмотреть сообщение
pawn Код:
if (strcmp("/irCasa", cmdtext, true, 10) == 0)
    {
if(IsPlayerAdmin(playerid)){
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,270.0256,-1242.1190,73.5906);//Posiзгo aonde o player serб teleportado
    SendClientMessage(playerid,0xFFFFFFAA, "[CASA] Bem vindo a casa");//Mesagem que irб aparecer para o Player no chat
    GameTextForPlayer(playerid,"~g~Bem vindo a casa", 1000, 1);//Mensagem que irб aparecer para o player na tela  
    }
}
Esta dando o mesmo erro
PHP код:
C:\Users\Twulin\Downloads\Game Mode\Casa-Admin.pwn(130) : error 030compound statement not closed at the end of file (started at line 113)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error




Re: [Ajuda] Erro ao Compile - sanalex - 07.05.2012

posta a linha 113 ?


Re: [Ajuda] Erro ao Compile - marcoslucasj - 07.05.2012

111 -if (strcmp("/AbrirPiscina", cmdtext, true, 10) == 0)
112 - {
113 - if(IsPlayerAdmin(playerid)){


Re: [Ajuda] Erro ao Compile - sanalex - 07.05.2012

Retira o que estб na linha 112 !


Re: [Ajuda] Erro ao Compile - marcoslucasj - 07.05.2012

Quote:
Originally Posted by sanalex
Посмотреть сообщение
Retira o que estб na linha 112 !
Eu retirei e agora ta dando erro denovo.so que agora esse
PHP код:
C:\Users\Twulin\Downloads\Game Mode\Casa-Admin.pwn(129) : error 030compound statement not closed at the end of file (started at line 103)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error