[Ajuda] MySQL
#1

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 ?
Reply
#2

Use um strcat para dividir a string.

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

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 *-*
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)