[Ajuda] Como salvar essas tabelas no MySQL?
#1

criei essa funзгo vendo uns tutoriais mas nгo sei oque devo fazer para a tabela ser criada no meu phpadmin, eu achava que jб iria criar mas nгo foi como eu previ.

PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(
dialogid == 0)   {
    new 
Str[300], nomeplayer[21], Float: X, Float: Y, Float: Z;
    
GetPlayerName(playerid, nomeplayer, 20);
    
GetPlayerPos(playerid, X, Y, Z);
    
format(Str, 300, "INSERT INTO `Contas`(`Nome`, `Senha`, `Level`, `Admin`, `Respeito`, `Org`, `Membro`, `X`, `Y`, `Z`) VALUES ('%s', '%i', '10', '%i', '%i', '%i', '%i', '%f', '%f', '%f')", nomeplayer, Hash(inputtext), 10, 8, 150, 2, 1, X, Y, Z);
    
mysql_tquery(Connect, Str, "DadosRegistrados", "i", playerid);
    }
    return 
1;
}
Hash(Dados[])   {
    new 
Hashs;
    for(new 
i = (strlen(Dados) -1); i > -1; --i) Hashs += (Dados[i]*Dados[(i + 1)]);
    return 
Hashs;
    } 
Reply


Messages In This Thread
Como salvar essas tabelas no MySQL? - by Misael - 07.11.2017, 18:43
Re: Como salvar essas tabelas no MySQL? - by Naine - 07.11.2017, 19:08
Re: Como salvar essas tabelas no MySQL? - by Misael - 07.11.2017, 19:15
Re: Como salvar essas tabelas no MySQL? - by Misael - 08.11.2017, 11:14
Re: Como salvar essas tabelas no MySQL? - by F1N4L - 08.11.2017, 11:16
Re: Como salvar essas tabelas no MySQL? - by Misael - 08.11.2017, 18:30
Re: Como salvar essas tabelas no MySQL? - by F1N4L - 09.11.2017, 00:36

Forum Jump:


Users browsing this thread: 1 Guest(s)