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



Erro - Piruka - 05.07.2014

Alguem sabe me ajudar ?

Код:
 public OnGameModeExit()
{
    for(new i = 0; i < GetMaxPlayers(); ++i)
    {
        if(pLogado[i])
        SalvarDados[i];
    }
    DOF2_Exit();
    return 1;
}


C:\Users\Bruno\Desktop\Servidor Samp\Projetos\GameMode\1.0.pwn(48) : error 029: invalid expression, assumed zero
C:\Users\Bruno\Desktop\Servidor Samp\Projetos\GameMode\1.0.pwn(48) : warning 215: expression has no effect
C:\Users\Bruno\Desktop\Servidor Samp\Projetos\GameMode\1.0.pwn(48) : error 001: expected token: ";", but found "]"
C:\Users\Bruno\Desktop\Servidor Samp\Projetos\GameMode\1.0.pwn(48) : fatal error 107: too many error messages on one line



Re: Erro - darkxdll - 05.07.2014

PHP код:
public OnGameModeExit()
{
    for(new 
0GetMaxPlayers(); ++i)
    {
        if(
pLogado[i])
        {
        
SalvarDados[i];
        }
    }
    
DOF2_Exit();
    return 
1;




Re: Erro - Piruka - 05.07.2014

Quote:
Originally Posted by darkxdll
Посмотреть сообщение
PHP код:
public OnGameModeExit()
{
    for(new 
0GetMaxPlayers(); ++i)
    {
        if(
pLogado[i])
        {
        
SalvarDados[i];
        }
    }
    
DOF2_Exit();
    return 
1;

Continua dando os erros


Re: Erro - darkxdll - 05.07.2014

Tente mudar de SalvarDados[i]; para SalvarDados(i);


Re: Erro - Piruka - 05.07.2014

Continua dando erros


Re: Erro - darkxdll - 05.07.2014

Qual й a linha 47 ?


Re: Erro - Piruka - 05.07.2014

47- if(pLogado[i])
48- SalvarDados[i];


Re: Erro - Ts3 - 05.07.2014

Tenta aн.

pawn Код:
public OnGameModeExit()
{
     for(new i = 0; i < GetMaxPlayers(); ++i)
     SalvarDados(i);
     DOF2_Exit();
     return true;
}



Re: Erro - Piruka - 05.07.2014

Quote:
Originally Posted by Ts3
Посмотреть сообщение
Tenta aн.

pawn Код:
public OnGameModeExit()
{
     for(new i = 0; i < GetMaxPlayers(); ++i)
     SalvarDados(i);
     DOF2_Exit();
     return true;
}
continua dando erros


Re: Erro - darkxdll - 05.07.2014

Como ta essa sua funзгo SalvarDados ?