[Ajuda] Erro hash
#1

Alguem pode me ajudar com essa nubada q eu fiz ? agradeзo !

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(!dialogid) {
      new Str[128], nome[20];
      GetPlayerName(playerid, nome, 20);
      format(Str, 128, "INSERT INTO `contas`(`Nome`, `Senha`, `Level`, `Admin`, `Respeito`, `Org`, `Membro`) VALUES ('%s', '%i', '%i', '%i', '%i', '%i', '%i')", nome, Hash(inputtext), 10, 8, 150, 2, 1); //linha 76 do erro
      mysql_function_query(connectt, Str, false, #, #);

      return 1;
}

Hash(dados[]) // linha 82 do erro
{
  new hashs;
  for(new i = (strlen(dados) - 1); i > -1; --1) hashs += (dados[1]*dados[(i+1)]); // linha 85 do erro
  return hashs;
}
Erros:

Код:
F:\Users\weverton\Desktop\Nova pasta\gamemodes\new.pwn(76) : error 017: undefined symbol "Hash"
F:\Users\weverton\Desktop\Nova pasta\gamemodes\new.pwn(82) : warning 217: loose indentation
F:\Users\weverton\Desktop\Nova pasta\gamemodes\new.pwn(82) : error 017: undefined symbol "Hash"
F:\Users\weverton\Desktop\Nova pasta\gamemodes\new.pwn(85) : error 017: undefined symbol "dados"
F:\Users\weverton\Desktop\Nova pasta\gamemodes\new.pwn(85) : error 022: must be lvalue (non-constant)
F:\Users\weverton\Desktop\Nova pasta\gamemodes\new.pwn(85) : error 017: undefined symbol "dados"
F:\Users\weverton\Desktop\Nova pasta\gamemodes\new.pwn(85) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Erro hash - by shittt - 25.08.2013, 19:47
Re: Erro hash - by PT - 25.08.2013, 20:17
Re: Erro hash - by shittt - 25.08.2013, 20:28
Re: Erro hash - by smiiir - 25.08.2013, 23:01

Forum Jump:


Users browsing this thread: 1 Guest(s)