SA-MP Forums Archive
[Ajuda] error 036: empty statement - 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 036: empty statement (/showthread.php?tid=388764)



error 036: empty statement - Baiano - 30.10.2012

Alguem ai pra ajudar com esse erro?

Код:
SalvarPlayer(playerid)
{
    new Nome123[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome123, sizeof(Nome123));
    new String[128];
    format(String, sizeof(String), CONTAS, Nome123);; // LINHA DO ERRO

    DOF2_SetInt(String,"Iniciante", PlayerInfo[playerid][pIniciante]);

	new date[32];
	new hour, minute, second, day, month, year;
	gettime(hour, minute, second);
	getdate(year, month, day);
	format(date, 32,"%d/%d/%d/%d/%d/%d",day,month,year,hour, minute, second);
	DOF2_SetString(String,"LastLogin", date);

	DOF2_SaveFile();
    return 1;
}



Re: error 036: empty statement - Maklister - 30.10.2012

PHP код:

SalvarPlayer
(playerid)
{
    new 
NomeJogador[MAX_PLAYER_NAME];
    
GetPlayerName(playeridNomeJogadorsizeof(NomeJogador));
    new 
String[128];
    
format(Stringsizeof(String), CONTASNomeJogador); // Tinha um Bracete a mais aqui
    
DOF2_SetInt(String,"Iniciante"PlayerInfo[playerid][pIniciante]);
    new 
date[32];
    new 
hourminuteseconddaymonthyear;
    
gettime(hourminutesecond);
    
getdate(yearmonthday);
    
format(date32,"%d/%d/%d/%d/%d/%d",day,month,year,hourminutesecond);
    
DOF2_SetString(String,"LastLogin"date);
    
DOF2_SaveFile();
    return 
1;




Re: error 036: empty statement - Q.I - 30.10.2012

pawn Код:
SalvarPlayer(playerid){
    new Nome123[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome123, sizeof(Nome123));
    new String[128];
    format(String, sizeof(String), CONTAS, Nome123);
    DOF2_SetInt(String,"Iniciante", PlayerInfo[playerid][pIniciante]);
    new date[32];
    new hour,
        minute,
            second,
                day,
                    month,
                        year;
    gettime(hour, minute, second);
    getdate(year, month, day);
    format(date, 32,"%d/%d/%d/%d/%d/%d",day,month,year,hour, minute, second);
    DOF2_SetString(String,"LastLogin", date);
    DOF2_SaveFile();
    return 1;
}
voce havia deixado ; < 1 a mais! na linha!


Re: error 036: empty statement - Rodney Francalim - 30.10.2012

pawn Код:
format(String, sizeof(String), CONTAS, Nome123);; // Remova 1 ; desses, o problema nгo й especificamente esse, eu acho.



Re: error 036: empty statement - Baiano - 30.10.2012

Jб deu certo. Murilo_sousa me ajudou! :]