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;
}
Код:
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