[Ajuda] error 036: empty statement
#1

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;
}
Reply
#2

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;

Reply
#3

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!
Reply
#4

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

Jб deu certo. Murilo_sousa me ajudou! :]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)