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



MySQL - Geo1996 - 01.01.2013

pawn Код:
public MySQL_Start()
{
    MysqlC = mysql_connect(mysql_host,mysql_user,mysql_database,mysql_password);
    if(!MysqlC)
        return print("Nгo foi possivel conectar a database, verifique as definiзхes novamente.");
    else
    {
        mysql_function_query(MysqlC,
            "CREATE TABLE IF NOT EXISTS `users` (\
                `id` int(11) NOT NULL, AUTO_INCREMENT,\
                `name` varchar(25) NOT NULL, \
                `password` varchar(25) NOT NULL, \
                `level` int(11) NOT NULL, \
                `adminlevel` int(11) NOT NULL, \
                `donaterank` int(11) NOT NULL, \
                `connecttedtime` int(11) NOT NULL, \
                `sex` int(11) NOT NULL, \
                `respect` int(11) NOT NULL, \
                `money` int(11) NOT NULL, \
                `bank` int(11) NOT NULL, \
                `crimes` int(11) NOT NULL, \
                `kills` int(11) NOT NULL, \
                `deaths` int(11) NOT NULL, \
                `emprego` int(11) NOT NULL, \
                `lider` int(11) NOT NULL, \
                `member` int(11) NOT NULL, \
                `char` int(11) NOT NULL, \
                `bizz` int(11) NOT NULL, \
                `house` int(11) NOT NULL, \
                `married` int(11) NOT NULL, \
                `marriedto` varchar(25) NOT NULL, \

                PRIMARY KEY(`id`)\
            )"
,false,"r@MySQL_Start","s","users");
    }
    return 1;
}
PHP код:
error 075input line too long (after substitutions
ja pesquisei pelo erro tente usar strcat mas nao deu muito certo, alguem poderia me ajudar ?


Re: MySQL - RebeloX - 01.01.2013

Use um strcat para dividir a string.

Dica: Nгo crie a tabela pelo gamemode por questхes de seguranзa, й um conselho.


Re: MySQL - Geo1996 - 01.01.2013

Quote:
Originally Posted by BlueX
Посмотреть сообщение
Use um strcat para dividir a string.

Dica: Nгo crie a tabela pelo gamemode por questхes de seguranзa, й um conselho.
ok irei tentar novamente, caso der erros venho aki no forum

e sobre a criaзгo de tabelas pelo gamemode, apenas segui seu tutorial *-*


Re: MySQL - RebeloX - 01.01.2013

Quote:
Originally Posted by Geo1996
Посмотреть сообщение
ok irei tentar novamente, caso der erros venho aki no forum

e sobre a criaзгo de tabelas pelo gamemode, apenas segui seu tutorial *-*
Sim, na altura eu fazia isso, mas depois lembrei-me que criar uma tabela por via do gamemode pode ser mau em termos de seguranзa.