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



Ajuda Urgente , Erro ao Compilar - LucasFoxY - 21.07.2013

Vou Direto ao Assunto

Erro:

Код:
C:\DOCUME~1\LUCASR~1\MEUSDO~1\DOWNLO~1\GAMEOF~1\GAMEMO~1\GOS.pwn(36299) : error 001: expected token: ")", but found "for"
Linha do Erro:

Код:
if(strcmp(cmd, "/pontosg", true) == 0
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if(IsPlayerInMorro(i) && Morro[Guerra] >= 1)
     		{
     			SendClientMessage(playerid, COLOR_GRAD1,"~b~~h~BOPE~n~~w~Pontos: ~y~%d",MorroPontos[2]);
			}
		}
			return true;
	}



Re: Ajuda Urgente , Erro ao Compilar - WLSF - 21.07.2013

pawn Код:
if(strcmp(cmd, "/pontosg", true) == 0 //-> ) <- faltou
if(strcmp(cmd, "/pontosg", true) == 0)
E faltou as brecks tambйm.

pawn Код:
if(strcmp(cmd, "/pontosg", true) == 0)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInMorro(i) && Morro[Guerra] >= 1)
            {
                SendClientMessage(playerid, COLOR_GRAD1,"~b~~h~BOPE~n~~w~Pontos: ~y~%d",MorroPontos[2]);
            }
        }
    }
    return true;
}



Re: Ajuda Urgente , Erro ao Compilar - darkxdll - 21.07.2013

PHP код:

    
if(strcmp(cmd"/pontosg"true) == 0)// eskeceu do ) aki xD
    
{
        for(new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i))
            {
                if(
IsPlayerInMorro(i) && Morro[Guerra] >= 1)
                 {
                     
SendClientMessage(playeridCOLOR_GRAD1,"~b~~h~BOPE~n~~w~Pontos: ~y~%d",MorroPontos[2]);
                }
            }
        }
        return 
1;
    } 
@edit : willian maldito kkkkk


Re: Ajuda Urgente , Erro ao Compilar - Coe1 - 21.07.2013

pawn Код:
if(strcmp(cmd, "/pontosg", true) == 0)
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInMorro(i) && Morro[Guerra] >= 1)
            {
                SendClientMessage(playerid, COLOR_GRAD1,"~b~~h~BOPE~n~~w~Pontos: ~y~%d",MorroPontos[2]);
            }
        }
            return true;
    }



Re: Ajuda Urgente , Erro ao Compilar - LucasFoxY - 21.07.2013

Nao Entendi


Re: Ajuda Urgente , Erro ao Compilar - WLSF - 21.07.2013

Vocк esqueceu um ")" para fechar o if do comando...

Leia o meu primeiro post ali, e vocк tambйm esqueceu os brecks "{" "}" do primeiro if.


Re: Ajuda Urgente , Erro ao Compilar - Coe1 - 21.07.2013

Wilian, qiзu cara tu ta muito ninja cara, noss noss.


Re: Ajuda Urgente , Erro ao Compilar - WLSF - 21.07.2013

Fйrias da faculdade e do trabalho causa isso, falta do que fazer... HUAEHAUHEUA